more clippy checks

This commit is contained in:
Stephan Dilly 2021-05-24 00:28:17 +02:00
parent 3ff8584438
commit a99baa0427
2 changed files with 19 additions and 1 deletions

View File

@ -51,7 +51,7 @@ clippy:
clippy-nightly:
touch src/main.rs
cargo clean -p gitui -p asyncgit -p scopetime -p filetree -p async_utils
cargo +nightly clippy --all-features
cargo +nightly clippy --workspace --all-features
check: fmt clippy test

View File

@ -1,3 +1,21 @@
// #![forbid(missing_docs)]
#![deny(unsafe_code)]
#![deny(unused_imports)]
#![deny(unused_must_use)]
#![deny(dead_code)]
#![deny(unstable_name_collisions)]
#![deny(clippy::all, clippy::perf, clippy::nursery, clippy::pedantic)]
#![deny(clippy::expect_used)]
#![deny(clippy::filetype_is_file)]
#![deny(clippy::cargo)]
#![deny(clippy::unwrap_used)]
#![deny(clippy::panic)]
#![deny(clippy::match_like_matches_macro)]
#![deny(clippy::needless_update)]
#![allow(clippy::module_name_repetitions)]
#![allow(clippy::must_use_candidate)]
#![allow(clippy::missing_errors_doc)]
mod error;
use crossbeam_channel::Sender;