Skip to content

Commit 7598cee

Browse files
committed
Silence clippy warnings about #[cfg(not(test))]
It doesn't seem possible to disable the warning with an outer attribute, and using an inner attribute would cause inconsistent linting across files. Just disable the warning everywhere; presumably when we exclude code from test builds we do it intentionally. https://rust-lang.github.io/rust-clippy/master/index.html#cfg_not_test
1 parent 8d4f2c5 commit 7598cee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ absolute_paths = "allow"
175175
as_conversions = "allow"
176176
arithmetic_side_effects = "allow"
177177
bool_to_int_with_if = "allow"
178+
cfg_not_test = "allow"
178179
default_numeric_fallback = "allow"
179180
else_if_without_else = "allow"
180181
expect_used = "allow"

0 commit comments

Comments
 (0)