From 7aa81452138e90d181e8f2c4823ff3054e82bec4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Buga?= Date: Fri, 11 Oct 2024 19:38:42 +0200 Subject: [PATCH] Silence clippy (#2332) --- esp-wifi/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esp-wifi/src/lib.rs b/esp-wifi/src/lib.rs index b4fd29e5052..bb438d9e86a 100644 --- a/esp-wifi/src/lib.rs +++ b/esp-wifi/src/lib.rs @@ -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);