Skip to content

Commit

Permalink
build: add clippy::cargo lint (#1053)
Browse files Browse the repository at this point in the history
Followup to #1035 and
#1034

It's reasonable to enable this and deal with breakage by fixing any
specific issues that arise.
  • Loading branch information
joshka committed Apr 21, 2024
1 parent 326a461 commit c75aa19
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Expand Up @@ -64,7 +64,9 @@ serde_json = "1.0.109"

[lints.rust]
unsafe_code = "forbid"

[lints.clippy]
cargo = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
Expand Down
4 changes: 4 additions & 0 deletions clippy.toml
@@ -0,0 +1,4 @@
# https://rust-lang.github.io/rust-clippy/master/index.html#/multiple_crate_versions
# ratatui -> bitflags v2.3
# termwiz -> wezterm-blob-leases -> mac_address -> nix -> bitflags v1.3.2
allowed-duplicate-crates = ["bitflags"]

0 comments on commit c75aa19

Please sign in to comment.