Skip to content

Fix clippy warnings#164

Merged
philiptaron merged 6 commits intonix-community:masterfrom
noamraph:fix-clippy-warnings
Jan 28, 2026
Merged

Fix clippy warnings#164
philiptaron merged 6 commits intonix-community:masterfrom
noamraph:fix-clippy-warnings

Conversation

@noamraph
Copy link
Contributor

@noamraph noamraph commented Jun 7, 2024

Summary & Motivation

I fixed the warnings Clippy showed. Mostly because Clippy helps me improve my code, and having warnings is distracting.

I'm also trying to add a CI step to run Clippy checks.

@domenkozar
Copy link
Contributor

cc @oberblastmeister

- Use #[non_exhaustive] instead of __LAST sentinel variant
- Fix mutable borrow conflict in tokenizer by pattern matching on &Context
- Remove redundant .clone() calls in path_util and str_util

The __LAST variant was added in 2019 as a workaround before #[non_exhaustive]
was stabilized (Rust 1.40, December 2019). Now that it's been stable for 6+
years, we can use the proper attribute.
- actions/checkout v3 -> v4
- actions-rs/toolchain v1 -> dtolnay/rust-toolchain@stable (actions-rs is unmaintained)
- Swatinem/rust-cache v2.0.0 -> v2
- actions-rs/cargo v1 -> direct cargo commands (actions-rs is unmaintained)
Copy link
Contributor

@philiptaron philiptaron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a breaking change in here, but it's due to mid-2019 Rust not having [[nonexhaustive]]. Let's roll.

@philiptaron philiptaron merged commit a173006 into nix-community:master Jan 28, 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.

3 participants