Skip to content

Commit

Permalink
Use full qualified syntax for itertools::Itertools::flatten (openethe…
Browse files Browse the repository at this point in the history
  • Loading branch information
sorpaas authored and VladLupashevskyi committed May 23, 2018
1 parent 5f28e2e commit 474468c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ethstore/src/accounts_dir/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

use std::collections::HashMap;
use parking_lot::RwLock;
use itertools::Itertools;
use itertools;
use ethkey::Address;

use {SafeAccount, Error};
Expand All @@ -30,7 +30,7 @@ pub struct MemoryDirectory {

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

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

0 comments on commit 474468c

Please sign in to comment.