Skip to content

Commit e3ab3be

Browse files
committed
build: introduce clippy lints
1 parent 65b25a6 commit e3ab3be

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Cargo.toml

+4
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ license = "Apache-2.0"
1010
repository = "https://github.com/SkuldNorniern/inksac-rs"
1111

1212
[dependencies]
13+
14+
[lints.clippy]
15+
unwrap_used = "deny"
16+
cognitive_complexity = "deny"

clippy.toml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
allow-unwrap-in-tests = true
2+
cognitive-complexity-threshold = 10

0 commit comments

Comments
 (0)