Skip to content

Commit a99baa0

Browse files
author
Stephan Dilly
committed
more clippy checks
1 parent 3ff8584 commit a99baa0

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ clippy:
5151
clippy-nightly:
5252
touch src/main.rs
5353
cargo clean -p gitui -p asyncgit -p scopetime -p filetree -p async_utils
54-
cargo +nightly clippy --all-features
54+
cargo +nightly clippy --workspace --all-features
5555

5656
check: fmt clippy test
5757

async_utils/src/lib.rs

+18
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
// #![forbid(missing_docs)]
2+
#![deny(unsafe_code)]
3+
#![deny(unused_imports)]
4+
#![deny(unused_must_use)]
5+
#![deny(dead_code)]
6+
#![deny(unstable_name_collisions)]
7+
#![deny(clippy::all, clippy::perf, clippy::nursery, clippy::pedantic)]
8+
#![deny(clippy::expect_used)]
9+
#![deny(clippy::filetype_is_file)]
10+
#![deny(clippy::cargo)]
11+
#![deny(clippy::unwrap_used)]
12+
#![deny(clippy::panic)]
13+
#![deny(clippy::match_like_matches_macro)]
14+
#![deny(clippy::needless_update)]
15+
#![allow(clippy::module_name_repetitions)]
16+
#![allow(clippy::must_use_candidate)]
17+
#![allow(clippy::missing_errors_doc)]
18+
119
mod error;
220

321
use crossbeam_channel::Sender;

0 commit comments

Comments
 (0)