Skip to content

Update rust version to 1.88 and fix some clippy warnings - #62

Merged
mkj merged 6 commits into
CodeConstruct:mainfrom
mkj:pr/clippy-edition-2024
Oct 12, 2026
Merged

mkj merged 6 commits into
CodeConstruct:mainfrom
mkj:pr/clippy-edition-2024

Conversation

@mkj

@mkj mkj commented Oct 5, 2026

Copy link
Copy Markdown
Member

This updates the rust version to 1.88 and edition 2024. @amboar @jk-ozlabs does that seem OK?
That version seems suitable given it will be needed if we want to use latest deku at some point.

The motivation is to avoid clippy warnings in the daily-nightly CI job. Setting the workspace and Cargo.toml versions to 1.85 might be another option (but won't get the while let/if let cleanups).

mkj added 6 commits October 5, 2026 10:14
rustfmt code to match.

Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
Crates and the workspace now specify the rust-version, and README
documents it.

Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
Recent clippy nightly recommended using `while let`. The loop break can
be simplified as well. No functional change.

Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
Nightly clippy suggests FromStr, so add that.

Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
Suggested by clippy.

Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
@amboar

amboar commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

I think it's probably best that the noise from CI is dealt with, as it's not going to go away of its own accord.

I feel the use of {while,if} let chains are nice improvements.

Deku's latest tag has an MSRV of 1.82. There are bumps to 1.88 beyond the tag. I guess whether 1.88 is necessary depends on our needs when updating the dependency?

That said, I don't have any immediate personal concerns. I run debian stable but use rustup to manage rust toolchains, so the MSRV bump past trixie's toolchain won't cause me problems, though it may be a concern for others.

@mkj
mkj merged commit 7808e2f into CodeConstruct:main Oct 12, 2026
3 checks passed
@mkj
mkj deleted the pr/clippy-edition-2024 branch October 12, 2026 02:12
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