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
Given the following project structure,
. ├── Cargo.lock ├── Cargo.toml └── src ├── foo.rs └── main.rs
// main.rs mod foo; fn main() { println!("Hello, world!"); }
// foo.rs #![rustfmt::skip] fn foo() {}
rustfmt src/main.rs -c and rustfmt src/foo.rs -c succeeds but rustfmt -cr src/main.rs will fail with the following output:
rustfmt src/main.rs -c
rustfmt src/foo.rs -c
rustfmt -cr src/main.rs
Diff in /tmp/skip/src/foo.rs:1: #![rustfmt::skip] -fn -foo() -{} +fn foo() {}
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Given the following project structure,
rustfmt src/main.rs -c
andrustfmt src/foo.rs -c
succeeds butrustfmt -cr src/main.rs
will fail with the following output:The text was updated successfully, but these errors were encountered: