From 9c41fb90001ef2781317213b24baa972d55820a8 Mon Sep 17 00:00:00 2001 From: Jeffrey Seyfried Date: Fri, 16 Jun 2017 15:05:05 -0700 Subject: [PATCH] Avoid unused macro warnings. --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index bf07157..4121798 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -29,12 +29,14 @@ impl FakeBox { // Needed for older compilers, to ignore vec!/format! macros in tests #[cfg(not(feature="collections"))] +#[allow(unused)] macro_rules! vec ( ( $ elem : expr ; $ n : expr ) => { () }; ( $ ( $ x : expr ) , * ) => { () }; ( $ ( $ x : expr , ) * ) => { () }; ); #[cfg(not(feature="collections"))] +#[allow(unused)] macro_rules! format { ( $ ( $ arg : tt ) * ) => { () }; }