diff options
Diffstat (limited to 'src/utils/crypto.rs')
| -rw-r--r-- | src/utils/crypto.rs | 2 |
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 { |
