Fixing clippy warnings 2 (#2961)

This commit is contained in:
Tomasz Drwięga
2016-10-29 13:08:49 +02:00
committed by Gav Wood
parent 9e82eeccfe
commit f17cad9dff
6 changed files with 7 additions and 6 deletions

View File

@@ -184,7 +184,7 @@ impl ChainNotify for Informant {
let ripe = Instant::now() > *last_import + Duration::from_secs(1) && !importing;
let txs_imported = imported.iter()
.take(imported.len() - if ripe {1} else {0})
.filter_map(|h| self.client.block(BlockID::Hash(h.clone())))
.filter_map(|h| self.client.block(BlockID::Hash(*h)))
.map(|b| BlockView::new(&b).transactions_count())
.sum();