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

Use full qualified syntax for itertools::Itertools::flatten #8606

Merged
merged 1 commit into from
May 14, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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