summaryrefslogtreecommitdiffstats
path: root/src/utils/crypto.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2025-06-28 19:17:43 +0800
committerGitHub <noreply@github.com>2025-06-28 19:17:43 +0800
commit419790fb74fbaf47d54519238b5a542a3875961e (patch)
tree8917db58a4a77a514079bf115d670a3f82003c03 /src/utils/crypto.rs
parentbad300bbce72dff6f085fc8b94e8ffbdd103f47f (diff)
downloadaichat-419790fb74fbaf47d54519238b5a542a3875961e.tar.gz
chore: clippy (#1334)
Diffstat (limited to 'src/utils/crypto.rs')
-rw-r--r--src/utils/crypto.rs2
1 files changed, 1 insertions, 1 deletions
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<u8> {
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 {