Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
max-dfinity committed Jan 24, 2025
1 parent a5f7b40 commit 16a14b2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rs/nns/governance/src/governance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2316,7 +2316,7 @@ impl Governance {
};

let mut neurons_by_subaccount: BTreeSet<NeuronId> = neuron_subaccounts
.into_iter()
.iter()
.flat_map(|neuron_subaccount| {
Self::bytes_to_subaccount(&neuron_subaccount.subaccount)
.ok()
Expand Down
4 changes: 2 additions & 2 deletions rs/nns/governance/src/governance/benches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -550,8 +550,8 @@ fn list_neurons_by_subaccount_benchmark() -> BenchResult {
.collect::<BTreeMap<u64, NeuronProto>>();

let subaccounts = neurons
.iter()
.map(|(_, neuron)| NeuronSubaccount {
.values()
.map(|neuron| NeuronSubaccount {
subaccount: neuron.account.clone(),
})
.collect();
Expand Down
1 change: 1 addition & 0 deletions rs/tests/driver/src/canister_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,7 @@ impl ListNnsNeuronsRequest {
include_public_neurons_in_full_neurons: None,
page_number: None,
page_size: None,
neuron_subaccounts: vec![],
},
}
}
Expand Down

0 comments on commit 16a14b2

Please sign in to comment.