From 1399d6334d310edb3369a296faf836dd927a3ad1 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The is_multiple_of method is unstable (rust-lang/rust#128101). Use simple modulo check for stable Rust compatibility. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- 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