Opt in to pedantic clippy lints

This commit is contained in:
David Tolnay 2020-12-29 17:10:05 -08:00
parent 4235341107
commit d00b37103f
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
2 changed files with 10 additions and 2 deletions

View File

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

View File

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