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

Bump to edition 2021 #281

Merged
merged 2 commits into from
Apr 2, 2024
Merged

Bump to edition 2021 #281

merged 2 commits into from
Apr 2, 2024

Conversation

GnomedDev
Copy link
Contributor

This crate is still on edition 2018 but it's MSRV is exactly the MSRV needed for 2021... so let's get this over with. It turns out that there were no changes required, but I fixed all the things missed for the 2018 migration by adding #![warn(rust_2018_idioms)].

@TedDriggs
Copy link
Owner

It looks like most of the code change here is due to the elided_lifetimes_in_paths lint, which says:

This lint is "allow" by default because it has some known issues, and may require a significant transition for old code.

Looking around further, it seems that use of that specific lint is not universally popular (source).

I'm otherwise supportive of this PR.

What would your thoughts be on allowing that one lint, and otherwise warning on 2018 idioms?

@GnomedDev
Copy link
Contributor Author

I personally would take dtolnay's opinions with a grain of salt, as he opposes a lot of common guidelines. I have never seen a codebase which does not follow this lint and is using rust_2018_idioms, so would be quite opposed to not following common guideline.

@TedDriggs
Copy link
Owner

You’re right… it just looks uglier ☹️

@TedDriggs TedDriggs merged commit efcab34 into TedDriggs:master Apr 2, 2024
12 checks passed
@GnomedDev GnomedDev deleted the 2021 branch April 2, 2024 15:48
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.

None yet

2 participants