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

brace_style doesn’t respect PreferSameLine #3299

Closed
hadronized opened this issue Jan 27, 2019 · 3 comments
Closed

brace_style doesn’t respect PreferSameLine #3299

hadronized opened this issue Jan 27, 2019 · 3 comments

Comments

@hadronized
Copy link

I have the behavior of SameLineWhere while I have this in my rustfmt.toml:

brace_style = "PreferSameLine"

File and project here

@topecongiro topecongiro added the only-with-option requires a non-default option value to reproduce label Jan 28, 2019
@scampi
Copy link
Contributor

scampi commented Jan 28, 2019

Can you point to a part of the code where you have the unexpected behaviour ?

@hadronized
Copy link
Author

Sure, here, for instance.

@calebcartwright
Copy link
Member

brace_style as currently intended is only applicable in item contexts. We'd started going down the path of extending it to apply in certain expression contexts, but after some reflection think we need to take a different path in the config option surface in order to provide sufficient control and flexibility.

Closing this accordingly, but feel free to subscribe to #3376 for updates on when/how we'll expose brace style control in some of these expression contexts

@calebcartwright calebcartwright removed the only-with-option requires a non-default option value to reproduce label May 13, 2022
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

No branches or pull requests

4 participants