Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 7bf0d30

Browse files
authored
Merge pull request rust-lang#3150 from flip1995/patch-1
Remove deprecated cfg_attr from README
2 parents 1f64f40 + 9adf96d commit 7bf0d30

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,7 @@ See [Configurations.md](Configurations.md) for details.
164164

165165
## Tips
166166

167-
* For things you do not want rustfmt to mangle, use one of
168-
169-
```rust
170-
#[rustfmt::skip] // requires nightly Rust and #![feature(tool_attributes)] in crate root
171-
#[cfg_attr(rustfmt, rustfmt_skip)] // works in stable
172-
```
167+
* For things you do not want rustfmt to mangle, use `#[rustfmt::skip]`
173168
* When you run rustfmt, place a file named `rustfmt.toml` or `.rustfmt.toml` in
174169
target file directory or its parents to override the default settings of
175170
rustfmt. You can generate a file containing the default configuration with

0 commit comments

Comments
 (0)