We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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 cargo fmt is run with the default configuration, comments in use-blocks may be removed unexpectedly.
cargo fmt
cargo fmt --version
rustfmt 1.5.1-stable (d5a82bb 2023-02-07)
cat src/main.rs
use std::{ /* io::{Read, Seek, Write}, */ path::{Path, PathBuf}, // important stuff }; fn main() { println!("Hello, world!"); }
cargo fmt -- --emit stdout
./src/main.rs: use std::path::{Path, PathBuf}; fn main() { println!("Hello, world!"); }
The text was updated successfully, but these errors were encountered:
Thanks for reaching out. Closing this as a duplicate of #4708
Sorry, something went wrong.
No branches or pull requests
When
cargo fmt
is run with the default configuration, comments in use-blocks may be removed unexpectedly.cargo fmt --version
cat src/main.rs
cargo fmt -- --emit stdout
The text was updated successfully, but these errors were encountered: