From b693c0c48ce20fb85fc62e3f0b9b32d4600b7056 Mon Sep 17 00:00:00 2001 From: Alex Pyattaev Date: Sat, 8 Mar 2025 19:44:59 +0000 Subject: [PATCH] remove useless attributes --- gossip/src/cluster_info_metrics.rs | 3 --- runtime/src/accounts_background_service/stats.rs | 1 - 2 files changed, 4 deletions(-) diff --git a/gossip/src/cluster_info_metrics.rs b/gossip/src/cluster_info_metrics.rs index 836d58f34c212a..4efc45be6871b7 100644 --- a/gossip/src/cluster_info_metrics.rs +++ b/gossip/src/cluster_info_metrics.rs @@ -56,9 +56,6 @@ pub(crate) struct ScopedTimer<'a> { } impl<'a> From<&'a Counter> for ScopedTimer<'a> { - // Output should be assigned to a *named* variable, otherwise it is - // immediately dropped. - #[must_use] fn from(counter: &'a Counter) -> Self { Self { clock: Instant::now(), diff --git a/runtime/src/accounts_background_service/stats.rs b/runtime/src/accounts_background_service/stats.rs index 085add43ac9318..bf4c8a2acae93e 100644 --- a/runtime/src/accounts_background_service/stats.rs +++ b/runtime/src/accounts_background_service/stats.rs @@ -102,7 +102,6 @@ impl Stats { } impl Default for Stats { - #[must_use] fn default() -> Self { Self { num_iterations: 0,