Explorar el Código

chore: allow panic-related clippy lints in tests

Co-Authored-By: Jayant Krishnamurthy <jayant@dourolabs.xyz>
Devin AI hace 6 meses
padre
commit
9d06198e20
Se han modificado 1 ficheros con 26 adiciones y 0 borrados
  1. 26 0
      apps/fortuna/Cargo.toml

+ 26 - 0
apps/fortuna/Cargo.toml

@@ -75,3 +75,29 @@ float_cmp = "deny"
 modulo_one = "deny"
 integer_division = "deny"
 try_err = "deny"
+
+# Allow panic-related lints in tests
+[lints.clippy.tests]
+unwrap_used = "allow"
+expect_used = "allow"
+panic = "allow"
+panic_in_result_fn = "allow"
+indexing_slicing = "allow"
+arithmetic_overflow = "allow"
+unwrap_in_result = "allow"
+option_unwrap_used = "allow"
+result_unwrap_used = "allow"
+todo = "allow"
+unimplemented = "allow"
+unreachable = "allow"
+expect_fun_call = "allow"
+cast_possible_truncation = "allow"
+cast_possible_wrap = "allow"
+cast_sign_loss = "allow"
+cast_precision_loss = "allow"
+unchecked_duration_subtraction = "allow"
+float_arithmetic = "allow"
+float_cmp = "allow"
+modulo_one = "allow"
+integer_division = "allow"
+try_err = "allow"