Skip to content

Commit

Permalink
allow clippy needless collect
Browse files Browse the repository at this point in the history
  • Loading branch information
brentstone committed Dec 16, 2022
1 parent b188ad3 commit c692ac7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions proof_of_stake/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2649,6 +2649,7 @@ where
let mut to_decrement = token::Amount::from_change(amount);

// We read all matched bonds into memory to do reverse iteration
#[allow(clippy::needless_collect)]
let bonds: Vec<Result<_, _>> = bond_remain_handle
.get_data_handler()
.iter(storage)?
Expand Down

0 comments on commit c692ac7

Please sign in to comment.