From 419790fb74fbaf47d54519238b5a542a3875961e Mon Sep 17 00:00:00 2001 From: sigoden Date: Sat, 28 Jun 2025 19:17:43 +0800 Subject: chore: clippy (#1334) --- src/utils/crypto.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils/crypto.rs') diff --git a/src/utils/crypto.rs b/src/utils/crypto.rs index 9f0ee82..494ea84 100644 --- a/src/utils/crypto.rs +++ b/src/utils/crypto.rs @@ -17,7 +17,7 @@ pub fn hmac_sha256(key: &[u8], msg: &str) -> Vec { pub fn hex_encode(bytes: &[u8]) -> String { bytes .iter() - .fold(String::new(), |acc, b| acc + &format!("{:02x}", b)) + .fold(String::new(), |acc, b| acc + &format!("{b:02x}")) } pub fn encode_uri(uri: &str) -> String { -- cgit v1.2.3