From 1f067c0237a5a50be95b6856f331cb30c0cd5bb7 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 27 May 2022 16:41:57 +0100 Subject: [PATCH] tor-netdoc: Suppress new "unused_macro_rules" lint in one place The compiler can apparently tell that we aren't generating compile errors! Also that we're not yet using a feature provided here. (New lint in currently Nightly.) --- crates/tor-netdoc/src/parse/macros.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/tor-netdoc/src/parse/macros.rs b/crates/tor-netdoc/src/parse/macros.rs index b54f6ae1f..af95b33ba 100644 --- a/crates/tor-netdoc/src/parse/macros.rs +++ b/crates/tor-netdoc/src/parse/macros.rs @@ -21,6 +21,7 @@ /// assert_eq!(Location::from_str("start"), Location::START); /// assert_eq!(Location::from_str("stfff"), Location::UNRECOGNIZED); /// ``` +#[allow(unused_macro_rules)] macro_rules! decl_keyword { { $(#[$meta:meta])* $v:vis $name:ident { $( $($anno:ident)? $($s:literal)|+ => $i:ident),* $(,)? } } => {