Skip to content

fix: satisfy needless_bool lint on macOS and Linux - #17

Merged
CubityFirst merged 1 commit into
mainfrom
fix/clippy-1.100
Nov 16, 2026
Merged

CubityFirst merged 1 commit into
mainfrom
fix/clippy-1.100

Conversation

@CubityFirst

Copy link
Copy Markdown
Owner

Clippy rejects the permission check on macOS and Linux because it returns boolean literals from an if guard. This blocks CI for PR #16 as well as main.

Define the permission check separately for each supported OS and return its predicate directly, preserving existing behavior.

Validation: cargo clippy --locked --all-targets -- -D warnings passes on Windows. CI will validate macOS and Linux.

@CubityFirst
CubityFirst merged commit 0bf7c53 into main Nov 16, 2026
4 checks passed
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.

1 participant