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

Commit 9adf96d

Browse files
authored
Remove deprecated cfg_attr from README
`tool_attributes` are stable since 1.30. The old `cfg_attr(rustfmt, rustfmt_skip)` attributes aren't necessary anymore and everyone should switch to `#[rustfmt::skip]` sooner or later. There is also a Clippy lint in the making for this: rust-lang/rust-clippy#3123
1 parent 1f64f40 commit 9adf96d

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)