Skip to content

Commit 490f98f

Browse files
authored
fix: restore #[allow(dead_code)] on is_bot helper (#2074)
The `#[allow(dead_code)]` annotation on `is_bot()` in `helpers.rs` was accidentally removed by commit dd179ba when cleaning up stale dead_code attributes. The function is only used by test code in `permissions.rs`, so it still needs the suppression. **Change**: Add `#[allow(dead_code)]` back to `is_bot()` (1 line). **Tests**: 57/57 pass, WASM build verified.
2 parents 0f1c6f9 + 6711d70 commit 490f98f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • guards/github-guard/rust-guard/src/labels

guards/github-guard/rust-guard/src/labels/helpers.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -856,6 +856,7 @@ pub fn commit_integrity(
856856
}
857857

858858
/// Check if a user appears to be a bot
859+
#[allow(dead_code)]
859860
pub fn is_bot(username: &str) -> bool {
860861
let lower = username.to_lowercase();
861862
lower.ends_with("[bot]")

0 commit comments

Comments
 (0)