Skip to content

Commit

Permalink
Merge pull request #82 from rmja/remove-warnings
Browse files Browse the repository at this point in the history
Remove compiler warnings
  • Loading branch information
rmja committed Jul 1, 2024
2 parents f1b7ea2 + 4b8ccd6 commit 54a403c
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 54a403c

Please sign in to comment.