From 28d9d8b8e2993b27f7cac279613b97858092afc8 Mon Sep 17 00:00:00 2001 From: dapplion <35266934+dapplion@users.noreply.github.com> Date: Wed, 11 Jun 2025 11:02:37 +0200 Subject: [PATCH] lint --- beacon_node/network/src/sync/range_sync/chain.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beacon_node/network/src/sync/range_sync/chain.rs b/beacon_node/network/src/sync/range_sync/chain.rs index 44b2b1937d..9e0363c379 100644 --- a/beacon_node/network/src/sync/range_sync/chain.rs +++ b/beacon_node/network/src/sync/range_sync/chain.rs @@ -1080,7 +1080,7 @@ impl SyncingChain { .iter() .filter(|&(_epoch, batch)| in_buffer(batch)) .count() - >= self.batch_buffer_size as usize + >= self.batch_buffer_size { return None; } @@ -1110,7 +1110,7 @@ impl SyncingChain { /// batch states. See [BatchState::visualize] for symbol definitions. #[instrument(parent = None,level = "info", fields(chain = self.id , service = "range_sync"), skip_all)] fn visualize_batch_state(&self) -> String { - let mut visualization_string = String::with_capacity((self.batch_buffer_size * 3) as usize); + let mut visualization_string = String::with_capacity(self.batch_buffer_size * 3); // Start of the block visualization_string.push('[');