Appease clippy stable
This commit is contained in:
parent
2a4a89c002
commit
acf6096103
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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<_>>();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue