Skip to content

Commit

Permalink
Re: fix warnings with latest rust (#5161)
Browse files Browse the repository at this point in the history
I made mistake on previous PR
#5150. It disabled all
unexpected cfgs instead of just allowing `substrate_runtime` condition.

In this PR: unexpected cfgs other than `substrate_runtime` are still
checked. and some warnings appear about them
  • Loading branch information
gui1117 authored Jul 28, 2024
1 parent d31e985 commit 10b8039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ default-members = [
[workspace.lints.rust]
suspicious_double_ref_op = { level = "allow", priority = 2 }
# `substrate_runtime` is a common `cfg` condition name used in the repo.
unexpected_cfgs = { level = "allow", check-cfg = ['cfg(substrate_runtime)'] }
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(substrate_runtime)'] }

[workspace.lints.clippy]
all = { level = "allow", priority = 0 }
Expand Down

0 comments on commit 10b8039

Please sign in to comment.