From db7fd8f33c218881899ca8335b470eda5aaec013 Mon Sep 17 00:00:00 2001 From: Bryan Brooks Date: Sun, 4 Jan 2026 18:14:22 -0600 Subject: [PATCH] fix: replace unstable is_multiple_of with modulo check The is_multiple_of method is unstable (rust-lang/rust#128101). Use simple modulo check for stable Rust compatibility. --- src/token.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/token.rs b/src/token.rs index 367cb4a..a3c26f0 100644 --- a/src/token.rs +++ b/src/token.rs @@ -309,7 +309,7 @@ impl TokenVerifier { // Add hex dependency for from_hex mod hex { pub fn decode(s: &str) -> Result, String> { - if !s.len().is_multiple_of(2) { + if s.len() % 2 != 0 { return Err("Invalid hex string length".to_string()); } -- knotmirror 0.0.1