From de2600c64c06afc56f27ce4086d4c0cce43df7c7 Mon Sep 17 00:00:00 2001 From: JustForFun88 <100504524+JustForFun88@users.noreply.github.com> Date: Sun, 15 May 2022 16:37:40 +0500 Subject: [PATCH 1/2] Allow unused macro rules for macro `cfg_if`. The unused macro rules lint is an upcoming lint for the rust compiler: [rust-lang/rust#96150](https://github.com/rust-lang/rust/pull/96150) --- src/macros.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/macros.rs b/src/macros.rs index 4de6b5aa11..1a3c8d47ad 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -1,4 +1,5 @@ // See the cfg-if crate. +#[allow(unused)] macro_rules! cfg_if { // match if/else chains with a final `else` ($( From 9a3f7a3df44e52a9d7331713acd694841dcee918 Mon Sep 17 00:00:00 2001 From: JustForFun88 <100504524+JustForFun88@users.noreply.github.com> Date: Sun, 15 May 2022 21:37:07 +0500 Subject: [PATCH 2/2] Update macros.rs --- src/macros.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/macros.rs b/src/macros.rs index 1a3c8d47ad..f8ef917b14 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -1,5 +1,5 @@ // See the cfg-if crate. -#[allow(unused)] +#[allow(unused_macro_rules)] macro_rules! cfg_if { // match if/else chains with a final `else` ($(