mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
update README.md to reflect rust-version in cargo.toml
This commit is contained in:
parent
81737bf850
commit
83511d1d9a
1 changed files with 8 additions and 0 deletions
|
@ -214,6 +214,14 @@ specifying the minimum supported Rust version (MSRV) in the clippy configuration
|
|||
msrv = "1.30.0"
|
||||
```
|
||||
|
||||
Alternatively, the [`rust-version` field](https://doc.rust-lang.org/cargo/reference/manifest.html#the-rust-version-field)
|
||||
in the `Cargo.toml` can be used.
|
||||
|
||||
```toml
|
||||
# Cargo.toml
|
||||
rust-version = "1.30"
|
||||
```
|
||||
|
||||
The MSRV can also be specified as an inner attribute, like below.
|
||||
|
||||
```rust
|
||||
|
|
Loading…
Reference in a new issue