-
-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2024 rust edition #1719
base: main
Are you sure you want to change the base?
2024 rust edition #1719
Conversation
I think precommit has updated their ubuntu images, so this might be ready to go |
Apparently rollout for both GH and pre-commits' CI is slower than thought. |
warn!("Environment variable {key} has invalid unicode. Lossy representation: {v}"); | ||
None | ||
} | ||
Some(s) => match s.into_string() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might be easier with .map_err(...).ok()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe, but it would introduce a clone due to how the borrow checker currently works..
(happy to be proven wrong, could not get it to work out)
Lets keep it as is for now
Co-authored-by: Yuri Astrakhan <[email protected]>
Re-Reverts #1718
This PR upgrades (
cargo fix --eddition
, then fix what does not make sense) our crates to the 2024 edition.While quite early, this enables things such as the v3 resolver, which might be helpfull to prevent MRSV breakages in the future by a MSRV breakage now.
Most of the changes are from rustfmt => going commit-by-commit is likely a good approach
Depends on:
Update Rust to 1.85 (2024 edition) actions/runner-images#11637
1.85.0
and rustup to1.28.0
pre-commit-ci/runner-image#294