rustfmt icon indicating copy to clipboard operation
rustfmt copied to clipboard

Ensure space around binary exprs

Open MarcusGrass opened this issue 1 year ago • 1 comments

Fixes https://github.com/rust-lang/rustfmt/issues/6059.

It just needed the same caveat for binary exprs.

It was already implemented for unaries so 2. .. 4. worked but not 4. / 3. .. 5. for example.

MarcusGrass avatar Feb 21 '24 17:02 MarcusGrass

Also I think it would be helpful if we could work the original code snippet from https://github.com/rust-lang/rustfmt/issues/6059 into a test case.

ytmimi avatar Feb 22 '24 16:02 ytmimi