From d00b37103f7db9dd26c28d666a0f7fbe30d83d4d Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 29 Dec 2020 17:10:05 -0800 Subject: [PATCH] Opt in to pedantic clippy lints --- .github/workflows/ci.yml | 2 +- src/lib.rs | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f231037..6d87313 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,4 +50,4 @@ jobs: steps: - uses: actions/checkout@v2 - uses: dtolnay/rust-toolchain@clippy - - run: cargo clippy -- -Dclippy::all + - run: cargo clippy -- -Dclippy::pedantic diff --git a/src/lib.rs b/src/lib.rs index 6996c69..52a6522 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -59,7 +59,15 @@ #![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(transmute_ptr_to_ptr))] +#![cfg_attr( + feature = "cargo-clippy", + allow( + expl_impl_clone_on_copy, + missing_errors_doc, + must_use_candidate, + transmute_ptr_to_ptr + ) +)] #[cfg(feature = "i128")] mod udiv128;