Skip to content

Commit 5c18df9

Browse files
authored
refactor: remove needless collect() calls in trie tests (#18937)
1 parent aec3e3d commit 5c18df9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

crates/trie/sparse-parallel/src/trie.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4995,7 +4995,7 @@ mod tests {
49954995
state.clone(),
49964996
trie_cursor.account_trie_cursor().unwrap(),
49974997
Default::default(),
4998-
state.keys().copied().collect::<Vec<_>>(),
4998+
state.keys().copied(),
49994999
);
50005000

50015001
// Write trie updates to the database
@@ -5040,7 +5040,7 @@ mod tests {
50405040
.iter()
50415041
.map(|nibbles| B256::from_slice(&nibbles.pack()))
50425042
.collect(),
5043-
state.keys().copied().collect::<Vec<_>>(),
5043+
state.keys().copied(),
50445044
);
50455045

50465046
// Write trie updates to the database

crates/trie/sparse/src/trie.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3031,7 +3031,7 @@ mod tests {
30313031
state.clone(),
30323032
trie_cursor.account_trie_cursor().unwrap(),
30333033
Default::default(),
3034-
state.keys().copied().collect::<Vec<_>>(),
3034+
state.keys().copied(),
30353035
);
30363036

30373037
// Write trie updates to the database
@@ -3073,7 +3073,7 @@ mod tests {
30733073
.iter()
30743074
.map(|nibbles| B256::from_slice(&nibbles.pack()))
30753075
.collect(),
3076-
state.keys().copied().collect::<Vec<_>>(),
3076+
state.keys().copied(),
30773077
);
30783078

30793079
// Write trie updates to the database

0 commit comments

Comments
 (0)