Skip to content

Commit 9d06198

Browse files
devin-ai-integration[bot]Jayant Krishnamurthy
andcommitted
chore: allow panic-related clippy lints in tests
Co-Authored-By: Jayant Krishnamurthy <[email protected]>
1 parent 23bcc26 commit 9d06198

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

apps/fortuna/Cargo.toml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,29 @@ float_cmp = "deny"
7575
modulo_one = "deny"
7676
integer_division = "deny"
7777
try_err = "deny"
78+
79+
# Allow panic-related lints in tests
80+
[lints.clippy.tests]
81+
unwrap_used = "allow"
82+
expect_used = "allow"
83+
panic = "allow"
84+
panic_in_result_fn = "allow"
85+
indexing_slicing = "allow"
86+
arithmetic_overflow = "allow"
87+
unwrap_in_result = "allow"
88+
option_unwrap_used = "allow"
89+
result_unwrap_used = "allow"
90+
todo = "allow"
91+
unimplemented = "allow"
92+
unreachable = "allow"
93+
expect_fun_call = "allow"
94+
cast_possible_truncation = "allow"
95+
cast_possible_wrap = "allow"
96+
cast_sign_loss = "allow"
97+
cast_precision_loss = "allow"
98+
unchecked_duration_subtraction = "allow"
99+
float_arithmetic = "allow"
100+
float_cmp = "allow"
101+
modulo_one = "allow"
102+
integer_division = "allow"
103+
try_err = "allow"

0 commit comments

Comments
 (0)