Convert clippy lint level attributes to tool attrs

This commit is contained in:
David Tolnay 2021-12-11 00:16:44 -08:00
parent 341086a6ff
commit 36c5ae17b4
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
3 changed files with 8 additions and 16 deletions

View File

@ -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;

View File

@ -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")]

View File

@ -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;