Skip to content

Commit

Permalink
Enable the unexpected_cfgs lint now that it can be configured via `…
Browse files Browse the repository at this point in the history
…Cargo.toml` (#751)
  • Loading branch information
jonasbb authored May 22, 2024
2 parents c348ea4 + 242286c commit 9593f93
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ unused_import_braces = "warn"
variant_size_differences = "warn"
# Unsafe code is needed for array initialization using MaybeUninit.
# unsafe_code = "forbid"
# FIXME: For tarpaulin some code is excluded, since tarpaulin does not detect the line coverage well
# Statements like: #![cfg(not(tarpaulin_include))]
# but the lint doesn't like them and it is probably better to not have a build.rs just for that.
unexpected_cfgs = "allow"
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tarpaulin)', 'cfg(tarpaulin_include)'] }

[workspace.lints.clippy]
# These lints have false positives and are disabled until they are fixed.
Expand Down

0 comments on commit 9593f93

Please sign in to comment.