fixed clippy warning

This commit is contained in:
Svyatoslav Nikolsky 2016-11-23 14:18:26 +03:00
parent 0e1773fae8
commit f54a9bab59
1 changed files with 1 additions and 1 deletions

View File

@ -864,7 +864,7 @@ impl<T> SynchronizationClientCore<T> where T: TaskExecutor {
let tasks: Vec<_> = self.peers.all_peers().into_iter()
.filter_map(|peer_index| {
let inventory: Vec<_> = new_transactions.iter()
.filter(|&&(ref h, tx)| self.peers.filter_mut(peer_index).filter_transaction(&h, tx))
.filter(|&&(ref h, tx)| self.peers.filter_mut(peer_index).filter_transaction(h, tx))
.map(|&(ref h, _)| InventoryVector {
inv_type: InventoryType::MessageTx,
hash: h.clone(),