Repository navigation
fix(lint): drop the box-editing tests' unwrap allows - #2074
Conversation
opengeos#1959 and opengeos#2063 landed together: the rotated-box editing tests kept `#[allow(clippy::unwrap_used, clippy::expect_used)]`, which opengeos#2063's `allow_attributes` lints now refuse, so clippy fails on main. clippy.toml already allows unwrap and expect in tests.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code reviewReviewed the two-line diff that removes Bugs: None found. The attribute is only on the test modules, so non-test code keeps the crate-root Security: None found. No input handling or secret-related code changed. Confidence: high. Performance: None found. Test-only attribute change. Confidence: high. Quality: None found. Both files have no other AGENTS.md: None found. The change follows the "Never crash" rule: tests may use unwrap/expect, and no suppression was added. I did not run Earlier review concerns left alone: 0 (there are no prior review threads on this PR). Change sizeCompared with
|
📖 Docs preview
GitHub Pages takes a minute or two to publish a new commit. Newer commits from the fork aren't published until a maintainer adds the |
Summary
#1959 (rotated-box editing) and #2063 (lint suppressions say why) landed together. #1959's test modules in
crates/engine/src/box_edit.rsandcrates/ui-egui/src/boxedit.rskept#[allow(clippy::unwrap_used, clippy::expect_used)], which #2063'sallow_attributesandallow_attributes_without_reasonlints refuse, so clippy fails onmainand on every pull request merged with it.This drops the two attributes, as #2063 did for the other test modules:
clippy.tomlalready allowsunwrapandexpectin tests.Testing
cargo clippy -p rustgis-engine -p rustgis-ui-egui --all-targets -- -D warningspasses (it failed onmainwith four errors on these two lines).cargo xtask cion the fork's CI.UI evidence
No visible UI change.
Related issue
Follow-up to #1959 and #2063.
Summary by CodeRabbit