clippy: fix inconsistent struct ordering
This commit is contained in:
parent
38585b6116
commit
f19f0d0949
|
@ -32,7 +32,7 @@ impl Ed25519Verifier {
|
||||||
let batch = batch::Verifier::default();
|
let batch = batch::Verifier::default();
|
||||||
// XXX(hdevalence) what's a reasonable choice here?
|
// XXX(hdevalence) what's a reasonable choice here?
|
||||||
let (tx, _) = channel(10);
|
let (tx, _) = channel(10);
|
||||||
Self { tx, batch }
|
Self { batch, tx }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -146,7 +146,7 @@ impl VerifierImpl {
|
||||||
// let batch = batch::Verifier::default();
|
// let batch = batch::Verifier::default();
|
||||||
let batch = Batch::default();
|
let batch = Batch::default();
|
||||||
let (tx, _) = channel(super::BROADCAST_BUFFER_SIZE);
|
let (tx, _) = channel(super::BROADCAST_BUFFER_SIZE);
|
||||||
Self { batch, tx, pvk }
|
Self { batch, pvk, tx }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -63,7 +63,7 @@ impl Default for Verifier {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
let batch = batch::Verifier::default();
|
let batch = batch::Verifier::default();
|
||||||
let (tx, _) = channel(super::BROADCAST_BUFFER_SIZE);
|
let (tx, _) = channel(super::BROADCAST_BUFFER_SIZE);
|
||||||
Self { tx, batch }
|
Self { batch, tx }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -141,8 +141,8 @@ impl From<Arc<Block>> for FinalizedBlock {
|
||||||
|
|
||||||
Self {
|
Self {
|
||||||
block,
|
block,
|
||||||
height,
|
|
||||||
hash,
|
hash,
|
||||||
|
height,
|
||||||
new_outputs,
|
new_outputs,
|
||||||
transaction_hashes,
|
transaction_hashes,
|
||||||
}
|
}
|
||||||
|
@ -153,15 +153,15 @@ impl From<PreparedBlock> for FinalizedBlock {
|
||||||
fn from(prepared: PreparedBlock) -> Self {
|
fn from(prepared: PreparedBlock) -> Self {
|
||||||
let PreparedBlock {
|
let PreparedBlock {
|
||||||
block,
|
block,
|
||||||
height,
|
|
||||||
hash,
|
hash,
|
||||||
|
height,
|
||||||
new_outputs,
|
new_outputs,
|
||||||
transaction_hashes,
|
transaction_hashes,
|
||||||
} = prepared;
|
} = prepared;
|
||||||
Self {
|
Self {
|
||||||
block,
|
block,
|
||||||
height,
|
|
||||||
hash,
|
hash,
|
||||||
|
height,
|
||||||
new_outputs,
|
new_outputs,
|
||||||
transaction_hashes,
|
transaction_hashes,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue