chore: clippy

This commit is contained in:
thesimplekid
2024-02-15 23:56:27 +00:00
parent a602820744
commit 878bbe63f3

View File

@@ -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()