Fix some compiler warnings (#11632)

This commit is contained in:
David
2020-04-15 14:01:26 +02:00
committed by GitHub
parent 2b77203526
commit 4ed0a454f0
3 changed files with 10 additions and 10 deletions

View File

@@ -508,7 +508,7 @@ impl BlockCollection {
// update subchain headers
fn update_heads(&mut self) {
let mut new_heads = Vec::new();
let old_subchains: HashSet<_> = { self.heads.iter().cloned().collect() };
let old_subchains: HashSet<_> = self.heads.iter().cloned().collect();
for s in self.heads.drain(..) {
let mut h = s.clone();
if !self.blocks.contains_key(&h) {