Skip to content

Commit

Permalink
Silence clippy (#2332)
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani authored Oct 11, 2024
1 parent e22103d commit 7aa8145
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion esp-wifi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,10 @@ fn timestamp() -> smoltcp::time::Instant {
}

// this is just to verify that we use the correct defaults in `build.rs`
#[allow(clippy::assertions_on_constants)] // TODO: try assert_eq once it's usable in const context
const _: () = {
cfg_if::cfg_if! {
if #[cfg(not(esp32h2))]{
if #[cfg(not(esp32h2))] {
core::assert!(binary::include::CONFIG_ESP_WIFI_STATIC_RX_BUFFER_NUM == 10);
core::assert!(binary::include::CONFIG_ESP_WIFI_DYNAMIC_RX_BUFFER_NUM == 32);
core::assert!(binary::include::WIFI_STATIC_TX_BUFFER_NUM == 0);
Expand Down

0 comments on commit 7aa8145

Please sign in to comment.