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);
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");
let result = self
.validate_and_commit(child)

View File

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