Skip to content

Remove hard coded edition default#532

Open
alerque wants to merge 1 commit intorust-lang:masterfrom
alerque:master
Open

Remove hard coded edition default#532
alerque wants to merge 1 commit intorust-lang:masterfrom
alerque:master

Conversation

@alerque
Copy link

@alerque alerque commented Mar 24, 2026

Closes #531

Hard coding a default fallback creates a problem for many use cases. Short of creating an unwanted config file in projects I don't have a say in, I can't make it stop reformatting files with the wrong edition. Furthermore this makes it impossible for users to set their own default fallback via the g:rustfmt_options setting because it will not accept the edition argument being specified more than once. The upstream rustfmt binary has its own fallback logic, by default we should just let it use it.

Hard coding a default fallback creates a problem for many use cases.
Short of creating an unwanted config file in projects I don't have a say
in, I can't make it stop reformatting files with the wrong edition.
Furthermore this makes it impossible for users to set their own default
fallback via the g:rustfmt_options setting because it will not accept
the edition argument being specified more than once. The upstream
rustfmt binary has its own fallback logic, by default we should just let
it use it.
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.

Remove hard coded edition fallback

1 participant