Merge pull request #2870 from dcarosone/edition-readme

call out edition config in Readme: Quick start (#2837)
This commit is contained in:
Nick Cameron 2018-07-30 08:25:02 +12:00 committed by GitHub
commit fad88596dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,6 +50,12 @@ To run:
cargo +nightly fmt
```
To format code that requires edition 2018, create a `rustfmt.toml` [configuration](#configuring-rustfmt) file containing:
```toml
edition = "Edition2018"
```
## Limitations
Rustfmt tries to work on as much Rust code as possible, sometimes, the code