From dcec440e9b7c77cfc9d2da74c029486d0b034b9e Mon Sep 17 00:00:00 2001 From: Vitaly Drogan Date: Mon, 13 Jan 2025 12:05:00 +0100 Subject: [PATCH] silence lints --- src/block_descriptor_bidding/block_registry.rs | 1 + src/metrics.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/block_descriptor_bidding/block_registry.rs b/src/block_descriptor_bidding/block_registry.rs index 48ad26d..f0c1ac2 100644 --- a/src/block_descriptor_bidding/block_registry.rs +++ b/src/block_descriptor_bidding/block_registry.rs @@ -89,6 +89,7 @@ mod tests { assert_eq!(block.can_add_payout_tx(), can_add_payout_tx); } // it should remember the last MAX_BLOCKS + #[allow(clippy::needless_range_loop)] for i in 1..=MAX_BLOCKS { let true_block_value = U256::from(i + initial_true_block_value); let can_add_payout_tx = i % 2 == 0; diff --git a/src/metrics.rs b/src/metrics.rs index e403392..a17c517 100644 --- a/src/metrics.rs +++ b/src/metrics.rs @@ -1,3 +1,5 @@ +#![allow(unexpected_cfgs)] + use ctor::ctor; use lazy_static::lazy_static; use metrics_macros::register_metrics;