clippy: remove needless borrows (#2457)

This commit is contained in:
teor 2021-07-08 00:38:57 +10:00 committed by GitHub
parent c8305fba1f
commit f817df638b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ pub struct Hash(pub [u8; 32]);
impl<'a> From<&'a Transaction> for Hash {
fn from(transaction: &'a Transaction) -> Self {
let hasher = TxIdBuilder::new(&transaction);
let hasher = TxIdBuilder::new(transaction);
hasher
.txid()
.expect("zcash_primitives and Zebra transaction formats must be compatible")

View File

@ -555,6 +555,6 @@ impl<'a> SigHasher<'a> {
.input
.as_ref()
.map(|(output, input, idx)| (output, *input, *idx));
sighash(&self.trans, self.hash_type, self.network_upgrade, input)
sighash(self.trans, self.hash_type, self.network_upgrade, input)
}
}