X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=README.md;h=2c3defeaa83078d2d124d62fbc1bb3cb6458d600;hb=f93d418f1789a5782053e99038db7d6701c8a30c;hp=edbc626e354b5bbc11120a1ac539a92538455ba9;hpb=7ceffdee9bc8dc7b645cb1b91bec5df8a6716087;p=rust.git diff --git a/README.md b/README.md index edbc626e354..2c3defeaa83 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ A collection of lints to catch common mistakes and improve your [Rust](https://github.com/rust-lang/rust) code. -[There are over 500 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html) +[There are over 550 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html) Lints are divided into categories, each with a default [lint level](https://doc.rust-lang.org/rustc/lints/levels.html). You can choose how much Clippy is supposed to ~~annoy~~ help you by changing the lint level by category. @@ -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