I have some code with extra spaces added inside [ ]
intentionally. If I run cargo fmt
, it will remove the extra space. Is there a way to tell rustfmt
(or cargo fmt
) to skip that?
example:
state[idx ] ^= 10;
state[idx + 1] ^= 11;
state[idx + 2] ^= 12;
By default, rustfmt
removes the extra space in the first line above. Can I ask rustfmt
not to do that?
Thanks.