Skip to content

Commit

Permalink
Note that it is possible to omit the patch version
Browse files Browse the repository at this point in the history
  • Loading branch information
flip1995 committed Nov 26, 2020
1 parent 3bcc75d commit 6eb2c27
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ cargo clippy -- -W clippy::lint_name
```

This also works with lint groups. For example you
can run Clippy with warnings for all lints enabled:
can run Clippy with warnings for all lints enabled:
```terminal
cargo clippy -- -W clippy::pedantic
```
Expand Down Expand Up @@ -214,6 +214,9 @@ fn main() {
}
```

You can also omit the patch version when specifying the MSRV, so `msrv = 1.30`
is equivalent to `msrv = 1.30.0`.

Note: `custom_inner_attributes` is an unstable feature so it has to be enabled explicitly.

Lints that recognize this configuration option can be found [here](https://rust-lang.github.io/rust-clippy/master/index.html#msrv)
Expand Down

0 comments on commit 6eb2c27

Please sign in to comment.