Cargo fmt - trailing white space

cargo fmt - but not rustc - chokes if there is space at the end of a line... Happens a lot - but not on all lines.

Is this a general issue? (on a mac).

% cargo fmt
error[internal]: left behind trailing whitespace
    --> src/
3011 |     Act::Open if g.obj==Obj::Oyster =>
1 Like

This is a category of bug where rustfmt is supposed to delete the whitespace, but does not. Each such case needs to be reported and fixed.

You should find that rustfmt will have formatted the rest of the file anyway.


This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.