Skip to content

Commit

Permalink
Use as_slice instead of as_ref
Browse files Browse the repository at this point in the history
I don't know why this didn't trigger for me. Potentially a difference in the
month of the nightly clippy?
  • Loading branch information
kayabaNerve committed Dec 3, 2023
1 parent 2f6fb93 commit ce03897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coordinator/src/tributary/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ impl TransactionTrait for Transaction {
// Make sure the part we're cutting off is the signature
assert_eq!(tx.drain((tx.len() - 64) ..).collect::<Vec<_>>(), signed.signature.serialize());
}
Blake2s256::digest([b"Coordinator Tributary Transaction".as_ref(), &tx].concat()).into()
Blake2s256::digest([b"Coordinator Tributary Transaction".as_slice(), &tx].concat()).into()
}

fn verify(&self) -> Result<(), TransactionError> {
Expand Down

0 comments on commit ce03897

Please sign in to comment.