tweak some pattern matches to address a new clippy warning

This commit is contained in:
Mira Ressel
2023-03-16 15:46:34 +01:00
parent a01de76ca1
commit 058082fcb0
6 changed files with 7 additions and 7 deletions
@@ -643,7 +643,7 @@ impl<T: Config> Pallet<T> {
};
// one more sweep for actually writing to storage.
let core_indices = core_indices_and_backers.iter().map(|&(ref c, _, _)| *c).collect();
let core_indices = core_indices_and_backers.iter().map(|(c, _, _)| *c).collect();
for (candidate, (core, backers, group)) in
candidates.into_iter().zip(core_indices_and_backers)
{