Skip to content

refactor: remove blanket clippy::unwrap_used allows#763

Open
chaliy wants to merge 1 commit intomainfrom
claude/remove-clippy-allows-f3OA3
Open

refactor: remove blanket clippy::unwrap_used allows#763
chaliy wants to merge 1 commit intomainfrom
claude/remove-clippy-allows-f3OA3

Conversation

@chaliy
Copy link
Contributor

@chaliy chaliy commented Mar 18, 2026

Summary

  • Add crate-level #![cfg_attr(test, allow(clippy::unwrap_used))] to blanket-allow unwrap() in test code, removing 85 per-module #[allow] annotations
  • Replace 7 non-test unwrap() calls with expect() containing safety justifications (in echo.rs, path.rs, printf.rs, fileops.rs)
  • 86 files changed, net -78 lines

Closes #737

Test plan

  • cargo clippy --all-targets --all-features -- -D warnings passes clean
  • cargo test --all-features all tests pass
  • Verified zero remaining #[allow(clippy::unwrap_used)] annotations in codebase

Add crate-level #![cfg_attr(test, allow(clippy::unwrap_used))] to
blanket-allow unwrap in test code, removing 85 per-module allows.
Replace 7 non-test unwrap() calls with expect() containing safety
justifications.

Closes #737
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.

refactor: remove blanket clippy::unwrap_used allows (90+ instances)

1 participant