Skip to content

Use Rust 2024 edition #1990

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

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

Use Rust 2024 edition #1990

wants to merge 5 commits into from

Conversation

jsdw
Copy link
Collaborator

@jsdw jsdw commented Apr 9, 2025

Setting to 2024 edition changes cargo fmt which leads to a lot of changes. Most probably this PR will be re-done when some others merge so as not to break them all!

All I did here was set the edition to 2024, run cargo fmt and fix a couple of clippy errors that cropped up.

@@ -65,7 +65,7 @@ impl DeriveJunction {
/// Get a reference to the inner junction id.
pub fn inner(&self) -> &[u8; JUNCTION_ID_LEN] {
match self {
DeriveJunction::Hard(ref c) | DeriveJunction::Soft(ref c) => c,
Copy link
Contributor

Choose a reason for hiding this comment

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

this was the only change needed besides fmt?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Seems that way! That and one other similar change; just clippy things :)

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