diff --git a/.clippy.toml b/.clippy.toml new file mode 100644 index 0000000..492e05c --- /dev/null +++ b/.clippy.toml @@ -0,0 +1 @@ +msrv = "1.34" diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 160356c..34b86d2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -174,8 +174,11 @@ jobs: - uses: actions-rs/toolchain@v1 with: profile: minimal - toolchain: stable + # https://github.com/rust-lang/rust-clippy/pull/6379 added MSRV + # support, so we need to use nightly until this is on stable. + toolchain: nightly components: rustfmt, clippy + override: true - name: clippy run: cargo clippy --all - name: fmt diff --git a/src/lib.rs b/src/lib.rs index 940113a..683b9ce 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -146,8 +146,6 @@ )] #![no_std] #![warn(rust_2018_idioms, unused_lifetimes, missing_docs)] -// `matches!` macro was added only in Rust 1.42, which is bigger than our MSRV -#![allow(clippy::match_like_matches_macro)] #[macro_use] extern crate cfg_if;