Skip to content

Commit b1f82ee

Browse files
committed
Add clippy config to the root crate
1 parent 12df432 commit b1f82ee

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/lib.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
#![warn(clippy::all, clippy::pedantic, clippy::nursery, clippy::cargo)]
2+
#![allow(
3+
clippy::cast_possible_truncation,
4+
clippy::cast_possible_wrap,
5+
clippy::cast_sign_loss,
6+
clippy::cast_lossless,
7+
clippy::cast_precision_loss,
8+
clippy::missing_const_for_fn,
9+
clippy::use_self,
10+
clippy::module_name_repetitions,
11+
clippy::cargo_common_metadata
12+
)]
13+
114
use std::error::Error as StdError;
215
use std::fmt::{self, Display};
316

0 commit comments

Comments
 (0)