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)]
|
#![feature(test)]
|
||||||
#![allow(non_snake_case)]
|
#![allow(non_snake_case)]
|
||||||
|
#![allow(clippy::cast_lossless)]
|
||||||
|
|
||||||
extern crate itoa;
|
extern crate itoa;
|
||||||
extern crate test;
|
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")]
|
#![doc(html_root_url = "https://docs.rs/itoa/0.4.8")]
|
||||||
#![cfg_attr(not(feature = "std"), no_std)]
|
#![cfg_attr(not(feature = "std"), no_std)]
|
||||||
#![cfg_attr(feature = "cargo-clippy", allow(renamed_and_removed_lints))]
|
#![allow(
|
||||||
#![cfg_attr(
|
clippy::expl_impl_clone_on_copy,
|
||||||
feature = "cargo-clippy",
|
clippy::missing_errors_doc,
|
||||||
allow(
|
clippy::must_use_candidate,
|
||||||
expl_impl_clone_on_copy,
|
clippy::semicolon_if_nothing_returned, // https://github.com/rust-lang/rust-clippy/issues/7768
|
||||||
missing_errors_doc,
|
clippy::transmute_ptr_to_ptr
|
||||||
must_use_candidate,
|
|
||||||
semicolon_if_nothing_returned, // https://github.com/rust-lang/rust-clippy/issues/7768
|
|
||||||
transmute_ptr_to_ptr
|
|
||||||
)
|
|
||||||
)]
|
)]
|
||||||
|
|
||||||
#[cfg(feature = "i128")]
|
#[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(non_snake_case)]
|
||||||
|
#![allow(clippy::cast_lossless, clippy::unseparated_literal_suffix)]
|
||||||
|
|
||||||
extern crate itoa;
|
extern crate itoa;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue