Skip to content

Commit

Permalink
Merge pull request #3150 from flip1995/patch-1
Browse files Browse the repository at this point in the history
Remove deprecated cfg_attr from README
  • Loading branch information
topecongiro authored Oct 29, 2018
2 parents 1f64f40 + 9adf96d commit 7bf0d30
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,7 @@ See [Configurations.md](Configurations.md) for details.

## Tips

* For things you do not want rustfmt to mangle, use one of

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

0 comments on commit 7bf0d30

Please sign in to comment.