Skip to content

Commit ee403b6

Browse files
committed
bitcoin: Allow some lints crate wide
This version is in maintenance mode but we would like to still get green CI runs. Just allow a bunch of lints.
1 parent 63aeb51 commit ee403b6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

bitcoin/Cargo.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,12 @@ required-features = ["std", "rand-std", "bitcoinconsensus"]
7373

7474
[lints.rust]
7575
unexpected_cfgs = { level = "deny", check-cfg = ['cfg(bench)', 'cfg(fuzzing)', 'cfg(kani)', 'cfg(rust_v_1_46)', 'cfg(rust_v_1_53)', 'cfg(rust_v_1_60)', 'cfg(mutate)'] }
76+
77+
# This version is in maintenance mode, just allow these lints so that we can keep CI green but make
78+
# minimal changes to the actual codebase.
79+
[lints.clippy]
80+
# Exclude lints we don't think are valuable.
81+
needless_question_mark = "allow" # https://github.com/rust-bitcoin/rust-bitcoin/pull/2134
82+
manual_range_contains = "allow" # More readable than clippy's format.
83+
precedence = "allow"
84+
legacy_numeric_constants = "allow"

0 commit comments

Comments
 (0)