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

Config option to remove spaces between braces and (a) their contents (b) macro names #6152

Open
berrymot opened this issue Apr 26, 2024 · 0 comments

Comments

@berrymot
Copy link

In non-Rust, I treat braces like other delimiters and don't put internal spaces adjacent to them:

function five() {return 5;}

It'd be nice if I could do this in Rust as well, partially because I'm using the json crate and I'm used to writing inline JSON spacelessly and would rather not add spaces to make it look consistent with the rest of rustfmt.

i.e. I'd prefer

object!{foo: 12}

but currently have to

object! { foo: 12 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants