Skip to content

Commit

Permalink
Remove compiler warnings
Browse files Browse the repository at this point in the history
Fixes #74
  • Loading branch information
rmja committed Jul 1, 2024
1 parent 1c27698 commit cc464cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/fmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,6 @@ macro_rules! unwrap {
}
}

#[cfg(feature = "defmt-timestamp-uptime")]
defmt::timestamp! {"{=u64:us}", crate::time::Instant::now().as_micros() }

#[derive(Debug, Copy, Clone, Eq, PartialEq)]
pub struct NoneError;

Expand Down
5 changes: 5 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,5 +133,10 @@ where
use embedded_io_async::BufRead;
tls.consume(amt);
}

#[cfg(not(feature = "embedded-tls"))]
{
_ = amt;
}
}
}

0 comments on commit cc464cc

Please sign in to comment.