Skip to content

Conversation

Dietr1ch
Copy link

I'm using a different style targeting the 2024 edition and it results in many unintended changes.

TESTED=I ran cargo fmt --all and it resulted in no changes.

I'm using a different style targeting the 2024 edition and it results
in many unintended changes.

TESTED=I ran `cargo fmt --all` and it resulted in no changes.
@Amanieu
Copy link
Member

Amanieu commented Sep 27, 2025

Shouldn't rustfmt automatically pick up the edition from Cargo.toml?

@Dietr1ch
Copy link
Author

That makes sense, but it seems that the edition specified on ~/.config/rustfmt/rustfmt.toml currently trumps over the project's edition, which should be a bug in rustfmt. I'll just close this then.

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