Remove unused_variables

This commit is contained in:
Luke Parker
2023-09-27 13:00:04 -04:00
parent 3b01d3039b
commit 01a4b9e694
6 changed files with 22 additions and 26 deletions

View File

@@ -297,7 +297,7 @@ impl ReadWrite for Transaction {
let share_len = usize::from(u16::from_le_bytes(share_len));
let mut shares = vec![];
for i in 0 .. u16::from_le_bytes(share_quantity) {
for _ in 0 .. u16::from_le_bytes(share_quantity) {
let mut share = vec![0; share_len];
reader.read_exact(&mut share)?;
shares.push(share);
@@ -490,7 +490,7 @@ impl TransactionTrait for Transaction {
}
}
if let Transaction::SignCompleted { plan, tx_hash, first_signer, signature } = self {
if let Transaction::SignCompleted { first_signer, signature, .. } = self {
if !signature.verify(*first_signer, self.sign_completed_challenge()) {
Err(TransactionError::InvalidContent)?;
}