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();
|
||||
// XXX(hdevalence) what's a reasonable choice here?
|
||||
let (tx, _) = channel(10);
|
||||
Self { tx, batch }
|
||||
Self { batch, tx }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -146,7 +146,7 @@ impl VerifierImpl {
|
|||
// let batch = batch::Verifier::default();
|
||||
let batch = Batch::default();
|
||||
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 {
|
||||
let batch = batch::Verifier::default();
|
||||
let (tx, _) = channel(super::BROADCAST_BUFFER_SIZE);
|
||||
Self { tx, batch }
|
||||
Self { batch, tx }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -141,8 +141,8 @@ impl From<Arc<Block>> for FinalizedBlock {
|
|||
|
||||
Self {
|
||||
block,
|
||||
height,
|
||||
hash,
|
||||
height,
|
||||
new_outputs,
|
||||
transaction_hashes,
|
||||
}
|
||||
|
@ -153,15 +153,15 @@ impl From<PreparedBlock> for FinalizedBlock {
|
|||
fn from(prepared: PreparedBlock) -> Self {
|
||||
let PreparedBlock {
|
||||
block,
|
||||
height,
|
||||
hash,
|
||||
height,
|
||||
new_outputs,
|
||||
transaction_hashes,
|
||||
} = prepared;
|
||||
Self {
|
||||
block,
|
||||
height,
|
||||
hash,
|
||||
height,
|
||||
new_outputs,
|
||||
transaction_hashes,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue