From 29437f21e4253aa398f972dc10aa7c53bec06d43 Mon Sep 17 00:00:00 2001 From: Rahul Madhav Upakare Date: Sun, 15 Feb 2026 01:41:47 +0530 Subject: [PATCH] Use of stable lib feature instead of experimental The is_multiple_of is a new, experimental feature introduced to the Rust standard library, but it is not yet stabilized. It requires the nightly compiler to work. Therefore, replacing it with the equivalent modulo operator (%) from stable release. --- src/security/secrets.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/security/secrets.rs b/src/security/secrets.rs index 6022ebe..adb8003 100644 --- a/src/security/secrets.rs +++ b/src/security/secrets.rs @@ -238,7 +238,7 @@ fn hex_encode(data: &[u8]) -> String { /// Hex-decode a hex string to bytes. fn hex_decode(hex: &str) -> Result> { - if !hex.len().is_multiple_of(2) { + if hex.len() % 2 != 0 { anyhow::bail!("Hex string has odd length"); } (0..hex.len())