Run clippy linter in CI
This commit is contained in:
parent
08c79b5e23
commit
cc8ab5800c
|
@ -43,3 +43,11 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: dtolnay/rust-toolchain@1.0.0
|
- uses: dtolnay/rust-toolchain@1.0.0
|
||||||
- run: cargo build
|
- 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
|
||||||
|
|
|
@ -59,10 +59,7 @@
|
||||||
#![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(
|
#![cfg_attr(feature = "cargo-clippy", allow(transmute_ptr_to_ptr))]
|
||||||
feature = "cargo-clippy",
|
|
||||||
allow(const_static_lifetime, transmute_ptr_to_ptr)
|
|
||||||
)]
|
|
||||||
|
|
||||||
#[cfg(feature = "i128")]
|
#[cfg(feature = "i128")]
|
||||||
mod udiv128;
|
mod udiv128;
|
||||||
|
|
Loading…
Reference in New Issue