mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
clippy: add needless_for_each clippy lint (#10555)
Co-authored-by: Oliver <onbjerg@users.noreply.github.com>
This commit is contained in:
@ -598,7 +598,7 @@ mod tests {
|
||||
.collect::<Vec<Vec<_>>>();
|
||||
let last_chunk = chunks.pop();
|
||||
|
||||
chunks.into_iter().for_each(|list| {
|
||||
for list in chunks {
|
||||
result.insert(
|
||||
ShardedKey::new(
|
||||
address,
|
||||
@ -607,7 +607,7 @@ mod tests {
|
||||
),
|
||||
list,
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
if let Some(last_list) = last_chunk {
|
||||
result.insert(ShardedKey::new(address, u64::MAX), last_list);
|
||||
|
||||
@ -624,7 +624,7 @@ mod tests {
|
||||
.collect::<Vec<Vec<_>>>();
|
||||
let last_chunk = chunks.pop();
|
||||
|
||||
chunks.into_iter().for_each(|list| {
|
||||
for list in chunks {
|
||||
result.insert(
|
||||
StorageShardedKey::new(
|
||||
partial_key.0,
|
||||
@ -634,7 +634,7 @@ mod tests {
|
||||
),
|
||||
list,
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
if let Some(last_list) = last_chunk {
|
||||
result.insert(
|
||||
|
||||
Reference in New Issue
Block a user