Skip to content

Commit 5ad415a

Browse files
alexpyattaevAlex Pyattaev
and
Alex Pyattaev
authored
chore: remove useless must_use attributes (#5199)
remove useless attributes Co-authored-by: Alex Pyattaev <[email protected]>
1 parent d89d53a commit 5ad415a

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

gossip/src/cluster_info_metrics.rs

-3
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ pub(crate) struct ScopedTimer<'a> {
5656
}
5757

5858
impl<'a> From<&'a Counter> for ScopedTimer<'a> {
59-
// Output should be assigned to a *named* variable, otherwise it is
60-
// immediately dropped.
61-
#[must_use]
6259
fn from(counter: &'a Counter) -> Self {
6360
Self {
6461
clock: Instant::now(),

runtime/src/accounts_background_service/stats.rs

-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ impl Stats {
102102
}
103103

104104
impl Default for Stats {
105-
#[must_use]
106105
fn default() -> Self {
107106
Self {
108107
num_iterations: 0,

0 commit comments

Comments
 (0)