Use as_slice instead of as_ref

I don't know why this didn't trigger for me. Potentially a difference in the
month of the nightly clippy?
This commit is contained in:
Luke Parker 2023-12-02 00:02:52 -05:00
parent 2f6fb93f87
commit ce038972df

View file

@ -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> {