From db1366f3e568a2323ca462d2acbf4b452715f768 Mon Sep 17 00:00:00 2001 From: argenis de la rosa Date: Sat, 14 Feb 2026 19:09:35 -0500 Subject: [PATCH] fix(ci): restore stable hex check and satisfy browser clippy gate --- src/security/secrets.rs | 2 +- src/tools/browser.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/security/secrets.rs b/src/security/secrets.rs index 3940843..b1f7f67 100644 --- a/src/security/secrets.rs +++ b/src/security/secrets.rs @@ -241,7 +241,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() & 1) != 0 { anyhow::bail!("Hex string has odd length"); } (0..hex.len()) diff --git a/src/tools/browser.rs b/src/tools/browser.rs index 5ee9505..8904634 100644 --- a/src/tools/browser.rs +++ b/src/tools/browser.rs @@ -365,6 +365,7 @@ impl BrowserTool { } } +#[allow(clippy::too_many_lines)] #[async_trait] impl Tool for BrowserTool { fn name(&self) -> &str {