Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Commit 981554c

Browse files
sorpaasniklasad1
authored andcommitted
Use full qualified syntax for itertools::Itertools::flatten (#8606)
1 parent 979af3d commit 981554c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ethstore/src/accounts_dir/memory.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
use std::collections::HashMap;
1818
use parking_lot::RwLock;
19-
use itertools::Itertools;
19+
use itertools;
2020
use ethkey::Address;
2121

2222
use {SafeAccount, Error};
@@ -30,7 +30,7 @@ pub struct MemoryDirectory {
3030

3131
impl KeyDirectory for MemoryDirectory {
3232
fn load(&self) -> Result<Vec<SafeAccount>, Error> {
33-
Ok(self.accounts.read().values().cloned().flatten().collect())
33+
Ok(itertools::Itertools::flatten(self.accounts.read().values().cloned()).collect())
3434
}
3535

3636
fn update(&self, account: SafeAccount) -> Result<SafeAccount, Error> {

0 commit comments

Comments
 (0)