Skip to content

Commit

Permalink
Opt in to pedantic clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Dec 30, 2020
1 parent 4235341 commit d00b371
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 9 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d00b371

Please sign in to comment.