From 87a2041b888b3fb02929154cb948ac08f2d4c3da Mon Sep 17 00:00:00 2001 From: okhsunrog Date: Sun, 26 Apr 2026 15:45:21 +0300 Subject: [PATCH] chore(zygisk): drop redundant allow(dead_code) on is_vpn_iface_cstr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The function is called from hooks.rs (hooked_getifaddrs and walk_getifaddrs_vpn). It's been used since the helper was added — the allow attribute is leftover from before its callers landed. clippy --release and cargo test both clean without it. --- zygisk/src/filter.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/zygisk/src/filter.rs b/zygisk/src/filter.rs index 64883cd..df1e58d 100644 --- a/zygisk/src/filter.rs +++ b/zygisk/src/filter.rs @@ -23,7 +23,6 @@ pub fn is_vpn_iface_bytes(name: &[u8]) -> bool { } /// Convenience wrapper: takes a `CStr` and dispatches to `is_vpn_iface_bytes`. -#[allow(dead_code)] pub fn is_vpn_iface_cstr(name: &CStr) -> bool { is_vpn_iface_bytes(name.to_bytes()) }