From ce038972df416f9e612c1d13772a71a30a325ba1 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Sat, 2 Dec 2023 00:02:52 -0500 Subject: [PATCH] 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? --- coordinator/src/tributary/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coordinator/src/tributary/mod.rs b/coordinator/src/tributary/mod.rs index 064002d24..a57d5e2d9 100644 --- a/coordinator/src/tributary/mod.rs +++ b/coordinator/src/tributary/mod.rs @@ -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::>(), 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> {