Opt in to pedantic clippy lints
This commit is contained in:
parent
4235341107
commit
d00b37103f
|
@ -50,4 +50,4 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: dtolnay/rust-toolchain@clippy
|
- uses: dtolnay/rust-toolchain@clippy
|
||||||
- run: cargo clippy -- -Dclippy::all
|
- run: cargo clippy -- -Dclippy::pedantic
|
||||||
|
|
10
src/lib.rs
10
src/lib.rs
|
@ -59,7 +59,15 @@
|
||||||
#![doc(html_root_url = "https://docs.rs/itoa/0.4.7")]
|
#![doc(html_root_url = "https://docs.rs/itoa/0.4.7")]
|
||||||
#![cfg_attr(not(feature = "std"), no_std)]
|
#![cfg_attr(not(feature = "std"), no_std)]
|
||||||
#![cfg_attr(feature = "cargo-clippy", allow(renamed_and_removed_lints))]
|
#![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")]
|
#[cfg(feature = "i128")]
|
||||||
mod udiv128;
|
mod udiv128;
|
||||||
|
|
Loading…
Reference in New Issue