From 10b8039a53ddaa10ca37fe70c64e549c649a22dc Mon Sep 17 00:00:00 2001 From: Guillaume Thiolliere Date: Sun, 28 Jul 2024 16:10:43 +0900 Subject: [PATCH] Re: fix warnings with latest rust (#5161) I made mistake on previous PR https://github.com/paritytech/polkadot-sdk/pull/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 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 9d1f83d3f2cf..1950eb2c8d3a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 }