Silence clippy (#2332)

This commit is contained in:
Dániel Buga 2024-10-11 19:38:42 +02:00 committed by GitHub
parent e22103d867
commit 7aa8145213
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);