clippy: remove needless borrows (#2457)
This commit is contained in:
parent
c8305fba1f
commit
f817df638b
|
@ -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")
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue