Skip to content

fix: restore #[allow(dead_code)] on is_bot helper#2074

Merged
lpcox merged 1 commit intomainfrom
fix/rust-lint
Mar 17, 2026
Merged

fix: restore #[allow(dead_code)] on is_bot helper#2074
lpcox merged 1 commit intomainfrom
fix/rust-lint

Conversation

@lpcox
Copy link
Collaborator

@lpcox lpcox commented Mar 17, 2026

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.

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>
Copilot AI review requested due to automatic review settings March 17, 2026 23:18
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Restores the #[allow(dead_code)] lint suppression on the labels::helpers::is_bot() helper, which is part of the public labels API surface but (currently) only referenced from test code—preventing dead_code warnings in non-test builds.

Changes:

  • Re-add #[allow(dead_code)] to is_bot() in labels/helpers.rs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants