clippy: fix inconsistent struct ordering

This commit is contained in:
teor 2021-03-22 12:20:44 +10:00 committed by Deirdre Connolly
parent 38585b6116
commit f19f0d0949
4 changed files with 6 additions and 6 deletions

View File

@ -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 }
} }
} }

View File

@ -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 }
} }
} }

View File

@ -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 }
} }
} }

View File

@ -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,
} }