From 6711d70cf5546c84af9da0f31715a00698f6b71e Mon Sep 17 00:00:00 2001 From: Landon Cox Date: Tue, 17 Mar 2026 16:18:12 -0700 Subject: [PATCH] fix: restore #[allow(dead_code)] on is_bot helper The annotation was accidentally removed by commit dd179ba when cleaning up stale #[allow(dead_code)] attributes. The is_bot() function is still only used by test code in permissions.rs, so it needs the suppression. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- guards/github-guard/rust-guard/src/labels/helpers.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/guards/github-guard/rust-guard/src/labels/helpers.rs b/guards/github-guard/rust-guard/src/labels/helpers.rs index ffa9a9d3..b73dc6a4 100644 --- a/guards/github-guard/rust-guard/src/labels/helpers.rs +++ b/guards/github-guard/rust-guard/src/labels/helpers.rs @@ -856,6 +856,7 @@ pub fn commit_integrity( } /// Check if a user appears to be a bot +#[allow(dead_code)] pub fn is_bot(username: &str) -> bool { let lower = username.to_lowercase(); lower.ends_with("[bot]")