Run clippy linter in CI

This commit is contained in:
David Tolnay 2020-12-29 17:07:25 -08:00
parent 08c79b5e23
commit cc8ab5800c
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
2 changed files with 9 additions and 4 deletions

View File

@ -43,3 +43,11 @@ jobs:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@1.0.0
- run: cargo build
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@clippy
- run: cargo clippy -- -Dclippy::all

View File

@ -59,10 +59,7 @@
#![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(const_static_lifetime, transmute_ptr_to_ptr)
)]
#![cfg_attr(feature = "cargo-clippy", allow(transmute_ptr_to_ptr))]
#[cfg(feature = "i128")]
mod udiv128;