Convert clippy lint level attributes to tool attrs
This commit is contained in:
parent
341086a6ff
commit
36c5ae17b4
|
@ -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;
|
||||
|
|
16
src/lib.rs
16
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")]
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue