Skip to content
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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

CommanderStorm
Copy link
Collaborator

@CommanderStorm CommanderStorm commented Mar 3, 2025

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:

@nyurik
Copy link
Member

nyurik commented Mar 4, 2025

I think precommit has updated their ubuntu images, so this might be ready to go

@CommanderStorm
Copy link
Collaborator Author

I think precommit has updated their ubuntu images

Apparently rollout for both GH and pre-commits' CI is slower than thought.
We are patient ^^

warn!("Environment variable {key} has invalid unicode. Lossy representation: {v}");
None
}
Some(s) => match s.into_string() {
Copy link
Member

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() ?

Copy link
Collaborator Author

@CommanderStorm CommanderStorm Mar 7, 2025

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

CommanderStorm and others added 2 commits March 5, 2025 10:05
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