Skip to content

Commit 5c21a87

Browse files
Merge #672
672: move the msrv configuration from 'clippy.toml' to 'Cargo.toml' r=jswrenn a=danieleades what it says on the tin. The MSRV can now be set in Cargo.toml rather than clippy.toml. Clippy parses the field from Cargo.toml. This has the added advantage that if you try to compile this crate with a toolchain older than the MSRV you'll get a nicer error message. Or you *would* if the MSRV wasn't so old that it doesn't make use of the `rust-version` key... still, it's the thought the counts. This change is future-proof, and is also backwards compatible, since unrecognised keys cause warnings, but not errors. Co-authored-by: Daniel Eades <[email protected]>
2 parents a1cbfba + 6452c66 commit 5c21a87

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Cargo.toml

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ exclude = ["/bors.toml"]
1616

1717
edition = "2018"
1818

19+
rust-version = "1.36.0"
20+
1921
[package.metadata.release]
2022
no-dev-version = true
2123

clippy.toml

-1
This file was deleted.

0 commit comments

Comments
 (0)