Appease clippy stable

This commit is contained in:
teor 2020-11-23 13:38:25 +10:00
parent 2a4a89c002
commit acf6096103
2 changed files with 3 additions and 4 deletions

View File

@ -166,7 +166,7 @@ impl StateService {
let queued_children = self.queued_blocks.dequeue_children(parent_hash); let queued_children = self.queued_blocks.dequeue_children(parent_hash);
for (child, rsp_tx) in queued_children { for (child, rsp_tx) in queued_children {
let child_hash = child.hash.clone(); let child_hash = child.hash;
tracing::trace!(?child_hash, "validating queued child"); tracing::trace!(?child_hash, "validating queued child");
let result = self let result = self
.validate_and_commit(child) .validate_and_commit(child)

View File

@ -66,11 +66,10 @@ impl QueuedBlocks {
.unwrap_or_default() .unwrap_or_default()
.into_iter() .into_iter()
.map(|hash| { .map(|hash| {
let queued = self self
.blocks .blocks
.remove(&hash) .remove(&hash)
.expect("block is present if its hash is in by_parent"); .expect("block is present if its hash is in by_parent")
queued
}) })
.collect::<Vec<_>>(); .collect::<Vec<_>>();