Add Clippy msrv configuration file
This allows us to automatically ignore lints that are incompatible with our MSRV. Signed-off-by: Joe Richey <joerichey@google.com>
This commit is contained in:
parent
3303349ef1
commit
d5186e0c86
1
.clippy.toml
Normal file
1
.clippy.toml
Normal file
@ -0,0 +1 @@
|
|||||||
|
msrv = "1.34"
|
5
.github/workflows/tests.yml
vendored
5
.github/workflows/tests.yml
vendored
@ -174,8 +174,11 @@ jobs:
|
|||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
profile: minimal
|
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
|
components: rustfmt, clippy
|
||||||
|
override: true
|
||||||
- name: clippy
|
- name: clippy
|
||||||
run: cargo clippy --all
|
run: cargo clippy --all
|
||||||
- name: fmt
|
- name: fmt
|
||||||
|
@ -146,8 +146,6 @@
|
|||||||
)]
|
)]
|
||||||
#![no_std]
|
#![no_std]
|
||||||
#![warn(rust_2018_idioms, unused_lifetimes, missing_docs)]
|
#![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]
|
#[macro_use]
|
||||||
extern crate cfg_if;
|
extern crate cfg_if;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user