Skip to content

fix: Address new clippy warnings - #1252

Merged
marco-c merged 1 commit into
mozilla:masterfrom
petemoore:fix-clippy-lints
Nov 19, 2026
Merged

marco-c merged 1 commit into
mozilla:masterfrom
petemoore:fix-clippy-lints

Conversation

@petemoore

Copy link
Copy Markdown
Member

The lint and test task installs the latest stable Rust, and recent clippy versions fail it on existing code (e.g. on #1246, #1247 and #1251): question_mark, collapsible_match and byte_char_slices in the library, then unwrap_or and unnecessary_unwrap in the CLI. This applies clippy's suggestions; behaviour is unchanged.

With Rust 1.100, cargo clippy --all-targets --all -- -D warnings, cargo fmt --check and cargo test --workspace --all-features all pass locally.

Newer stable Rust (1.100) adds or enables clippy lints that fail the
'lint and test' task with -D warnings: question_mark, collapsible_match,
byte_char_slices, map_or-to-unwrap_or and unnecessary_unwrap.
@marco-c
marco-c merged commit 4bfd63a into mozilla:master Nov 19, 2026
1 check 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.

2 participants