Skip to content

Commit 6e8f91f

Browse files
committed
Add Clippy msrv configuration file
This allows us to automatically ignore lints that are incompatible with our MSRV. Signed-off-by: Joe Richey <[email protected]>
1 parent 91ed791 commit 6e8f91f

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.clippy.toml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
msrv = "1.34"

.github/workflows/tests.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,11 @@ jobs:
174174
- uses: actions-rs/toolchain@v1
175175
with:
176176
profile: minimal
177-
toolchain: stable
177+
# https://github.com/rust-lang/rust-clippy/pull/6379 added MSRV
178+
# support, so we need to use nightly until this is on stable.
179+
toolchain: nightly
178180
components: rustfmt, clippy
181+
override: true
179182
- name: clippy
180183
run: cargo clippy --all
181184
- name: fmt

src/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,6 @@
149149
)]
150150
#![no_std]
151151
#![warn(rust_2018_idioms, unused_lifetimes, missing_docs)]
152-
// `matches!` macro was added only in Rust 1.42, which is bigger than our MSRV
153-
#![allow(clippy::match_like_matches_macro)]
154152

155153
#[macro_use]
156154
extern crate cfg_if;

0 commit comments

Comments
 (0)