Skip to content

Commit

Permalink
More strict clippy lints
Browse files Browse the repository at this point in the history
In particular checks about panic and stdout usage, and value truncation.
  • Loading branch information
cgzones committed Sep 25, 2024
1 parent b6ab2e4 commit 3e8a594
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,19 @@ tower-service = "0"
unsafe_code = "forbid"

[lints.clippy]
cast_possible_truncation = "deny"
cast_possible_wrap = "deny"
cast_sign_loss = "deny"
enum_glob_use = "deny"
if_not_else = "deny"
items_after_statements = "deny"
mut_mut = "deny"
panic = "deny"
print_stdout = "deny"
similar_names = "deny"
unicode_not_nfc = "deny"
unwrap_used = "deny"
used_underscore_binding = "deny"

[profile.release]
strip = "debuginfo"
Expand Down

0 comments on commit 3e8a594

Please sign in to comment.