Skip to content

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

Open
@mi2ebi

Description

@mi2ebi

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 }

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions