diff --git a/benches/bench.rs b/benches/bench.rs index a9ed517..e9e87f0 100644 --- a/benches/bench.rs +++ b/benches/bench.rs @@ -1,6 +1,6 @@ -#![cfg_attr(feature = "cargo-clippy", allow(cast_lossless))] #![feature(test)] #![allow(non_snake_case)] +#![allow(clippy::cast_lossless)] extern crate itoa; extern crate test; diff --git a/src/lib.rs b/src/lib.rs index 9ae9d0b..4f63e50 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -58,16 +58,12 @@ #![doc(html_root_url = "https://docs.rs/itoa/0.4.8")] #![cfg_attr(not(feature = "std"), no_std)] -#![cfg_attr(feature = "cargo-clippy", allow(renamed_and_removed_lints))] -#![cfg_attr( - feature = "cargo-clippy", - allow( - expl_impl_clone_on_copy, - missing_errors_doc, - must_use_candidate, - semicolon_if_nothing_returned, // https://github.com/rust-lang/rust-clippy/issues/7768 - transmute_ptr_to_ptr - ) +#![allow( + clippy::expl_impl_clone_on_copy, + clippy::missing_errors_doc, + clippy::must_use_candidate, + clippy::semicolon_if_nothing_returned, // https://github.com/rust-lang/rust-clippy/issues/7768 + clippy::transmute_ptr_to_ptr )] #[cfg(feature = "i128")] diff --git a/tests/test.rs b/tests/test.rs index 4931568..e68fcfc 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -1,9 +1,5 @@ -#![cfg_attr(feature = "cargo-clippy", allow(renamed_and_removed_lints))] -#![cfg_attr( - feature = "cargo-clippy", - allow(cast_lossless, unseparated_literal_suffix) -)] #![allow(non_snake_case)] +#![allow(clippy::cast_lossless, clippy::unseparated_literal_suffix)] extern crate itoa;