Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
frame/remote-externalities: Fix clippy
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
  • Loading branch information
lexnv committed Dec 13, 2022
1 parent 6b616cd commit 56d9b70
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions utils/frame/remote-externalities/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ where

// Ensure all threads finished execution before returning.
let keys_and_values =
handles.into_iter().map(|h| h.join().unwrap()).flatten().collect::<Vec<_>>();
handles.into_iter().flat_map(|h| h.join().unwrap()).collect::<Vec<_>>();

if batch_failed {
return Err("Batch failed.")
Expand Down Expand Up @@ -783,8 +783,7 @@ where

let child_kv = handles
.into_iter()
.map(|h| h.join().unwrap())
.flatten()
.flat_map(|h| h.join().unwrap())
.flatten()
.collect::<Vec<_>>();
Ok(child_kv)
Expand Down

0 comments on commit 56d9b70

Please sign in to comment.