Skip to content

Commit c51313f

Browse files
committed
Add expected cfgs to lightning-tests lints
1 parent 17b08bc commit c51313f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lightning-tests/Cargo.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,13 @@ lightning_0_0_125 = { package = "lightning", version = "0.0.125", features = ["_
2020
bitcoin = { version = "0.32.2", default-features = false }
2121

2222
[dev-dependencies]
23+
24+
[lints.rust.unexpected_cfgs]
25+
level = "forbid"
26+
# When adding a new cfg attribute, ensure that it is added to this list.
27+
#
28+
# Note that Cargo automatically declares corresponding cfgs for every feature
29+
# defined in the member-level [features] tables as "expected".
30+
check-cfg = [
31+
"cfg(taproot)",
32+
]

0 commit comments

Comments
 (0)