We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When a comment ends with a trailing whitespace, cargo fmt --check gives an unclear error message.
cargo fmt --check
fn main() { // Comment with trailing whitespace println!("Hello world"); }
Error message:
output of rustfmt -V on my machine: rustfmt 1.8.0-nightly (b48576b4db 2025-03-22)
rustfmt -V
rustfmt 1.8.0-nightly (b48576b4db 2025-03-22)
I think there are Unicode characters that can be used to represent unwanted spaces, like U+2423, U+23B5 or U+25AF
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When a comment ends with a trailing whitespace,
cargo fmt --check
gives an unclear error message.Error message:
output of
rustfmt -V
on my machine:rustfmt 1.8.0-nightly (b48576b4db 2025-03-22)
I think there are Unicode characters that can be used to represent unwanted spaces, like U+2423, U+23B5 or U+25AF
The text was updated successfully, but these errors were encountered: