From 878bbe63f3c4b25167f7b18007305790d163dcf3 Mon Sep 17 00:00:00 2001 From: thesimplekid Date: Thu, 15 Feb 2024 23:56:27 +0000 Subject: [PATCH] chore: clippy --- crates/cashu/src/dhke.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/cashu/src/dhke.rs b/crates/cashu/src/dhke.rs index 35573699..4100010e 100644 --- a/crates/cashu/src/dhke.rs +++ b/crates/cashu/src/dhke.rs @@ -13,8 +13,7 @@ pub fn hash_to_curve(message: &[u8]) -> k256::PublicKey { let mut counter = 0; loop { - let hash = - sha256::Hash::hash(&vec![msg_to_hash, counter.to_string().into_bytes()].concat()); + let hash = sha256::Hash::hash(&[msg_to_hash, counter.to_string().into_bytes()].concat()); match k256::PublicKey::from_sec1_bytes( &[0x02u8] .iter()