From cc8ab5800c04df2b911056de35f2d76f7f96f7fc Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 29 Dec 2020 17:07:25 -0800 Subject: [PATCH] Run clippy linter in CI --- .github/workflows/ci.yml | 8 ++++++++ src/lib.rs | 5 +---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ec51099..f231037 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,3 +43,11 @@ jobs: - uses: actions/checkout@v2 - uses: dtolnay/rust-toolchain@1.0.0 - run: cargo build + + clippy: + name: Clippy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: dtolnay/rust-toolchain@clippy + - run: cargo clippy -- -Dclippy::all diff --git a/src/lib.rs b/src/lib.rs index d7bc81c..6996c69 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -59,10 +59,7 @@ #![doc(html_root_url = "https://docs.rs/itoa/0.4.7")] #![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(feature = "cargo-clippy", allow(renamed_and_removed_lints))] -#![cfg_attr( - feature = "cargo-clippy", - allow(const_static_lifetime, transmute_ptr_to_ptr) -)] +#![cfg_attr(feature = "cargo-clippy", allow(transmute_ptr_to_ptr))] #[cfg(feature = "i128")] mod udiv128;