Skip to content

Commit

Permalink
clippy: remove needless borrows (#2457)
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 authored Jul 7, 2021
1 parent c8305fb commit f817df6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion zebra-chain/src/transaction/hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion zebra-chain/src/transaction/sighash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

0 comments on commit f817df6

Please sign in to comment.