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);
|
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)
|
||||||
|
|
|
||||||
|
|
@ -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<_>>();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue