Skip to content

Trailing whitespace remains when passing --edition 2024 #6568

New issue

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

Open
mmottl opened this issue May 21, 2025 · 0 comments
Open

Trailing whitespace remains when passing --edition 2024 #6568

mmottl opened this issue May 21, 2025 · 0 comments

Comments

@mmottl
Copy link

mmottl commented May 21, 2025

❯ rustfmt --version
rustfmt 1.8.0-stable (4d91de4e48 2025-02-17)

Consider the following file foo.rs:

fn f() {} // This has trailing whitespace  

The trailing whitespace remains when calling rustfmt --edition 2024 foo.rs but rustfmt foo.rs removes it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant