style: use #[expect] instead of #[allow]#1385
Conversation
these tests were being compiled into the release binaries instead of being treated as unit tests
|
Great job! No new security vulnerabilities introduced in this pull request |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1385 +/- ##
=======================================
Coverage 15.42% 15.42%
=======================================
Files 21 21
Lines 1193 1193
=======================================
Hits 184 184
Misses 1009 1009 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Claude finished @tangowithfoxtrot's task —— View job Code Review Complete
SummaryThis PR successfully replaces all Critical IssuesNone. Suggested ImprovementsFinding 1: 💭 PR description could benefit from a test plan section The PR checklist includes "All formatters and local linters executed and passed" as checked, but the description lacks a concrete test plan. Consider adding: Suggested addition to PR description## Test Plan
- [x] Ran `cargo +nightly fmt` - no formatting issues
- [x] Ran `cargo clippy --all-features --tests` - all lints pass
- [x] Verified no `#[allow()]` attributes remain in codebase
- [x] Confirmed lint enforcement with `allow-attributes = "deny"` prevents future violationsFinding 2: 🎨 Consider documenting the rationale for specific Three of the
While // Profile keys must match config file format (snake_case)
#[expect(non_camel_case_types)]
pub(crate) enum ProfileKey { ... }
// Output format names follow common convention (JSON, YAML, etc.)
#[expect(clippy::upper_case_acronyms)]
pub(crate) enum Output { ... }
// Schema types only used for derive macro code generation
#[expect(dead_code)]
struct SchemaTypes { ... }Good Practices Observed
Action ItemsNone required - the PR is functionally complete. The improvement suggestions above are optional enhancements for documentation clarity. |
#[expect()] instead of #[allow()]#[expect] instead of #[allow]

🎟️ Tracking
📔 Objective
Rust 1.81 stabilized the
#[expect]attribute. This attribute acts very similarly to#[allow], in that it allows for the suppression of various style lints. Unlike#[allow], however, it tells the linter to expect that you are overriding a linter warning. If the override is no longer applicable, then#[expect]will throw a warning stating that the lint suppression is no longer needed so that you can remove it.⏰ Reminders before review
team
🦮 Reviewer guidelines
:+1:) or similar for great changes:memo:) or ℹ️ (:information_source:) for notes or general info:question:) for questions:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmedissue and could potentially benefit from discussion
:art:) for suggestions / improvements:x:) or:warning:) for more significant problems or concerns needing attention:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt:pick:) for minor or nitpick changes