Skip to content

Commit 27d7aec

Browse files
author
Adrian Nagy
committed
feat: enable more powerfull clippy lints
1 parent 0cc8bf0 commit 27d7aec

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ members = [
3434

3535
resolver = "2"
3636

37+
[workspace.lints.clippy]
38+
unwrap_used = "warn"
39+
arithmetic_side_effects = "warn"
40+
indexing_slicing = "warn"
41+
3742
[workspace.dependencies]
3843
mina-p2p-messages = { path = "mina-p2p-messages", features = ["hashing"] }
3944
ledger = { path = "ledger", package = "mina-tree" }

clippy.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
allow-unwrap-in-tests=true

node/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ version = "0.8.3"
44
edition = "2021"
55
license = "Apache-2.0"
66

7+
[lints]
8+
workspace = true
9+
710
[dependencies]
811
serde = "1.0.147"
912
serde_json = { version = "1.0.82", features = ["unbounded_depth", "arbitrary_precision"] }

0 commit comments

Comments
 (0)