We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Tracking issue for unstable option: empty_item_single_line
The text was updated successfully, but these errors were encountered:
Hi,
I hope this is the right place to report this:
When the option brace_style is set to "AlwaysNextLine", then empty_item_single_line=true does not work for traits:
brace_style
"AlwaysNextLine"
empty_item_single_line=true
// Expected: pub trait SomeTrait {} // Produced: pub trait SomeTrait { }
Removing the brace_style option from the .toml will make rustfmt produce the expected formatting.
Sorry, something went wrong.
When using empty_item_single_line=false with the following code
empty_item_single_line=false
mod hello { } fn foo() { }
I get this result
mod hello {} fn foo() { }
but I would expect this result
No branches or pull requests
Tracking issue for unstable option: empty_item_single_line
The text was updated successfully, but these errors were encountered: