Avoid unused macro warnings.

This commit is contained in:
Jeffrey Seyfried 2017-06-16 15:05:05 -07:00
parent 1a62a818c3
commit 9c41fb9000
1 changed files with 2 additions and 0 deletions

View File

@ -29,12 +29,14 @@ impl<T> FakeBox<T> {
// Needed for older compilers, to ignore vec!/format! macros in tests // Needed for older compilers, to ignore vec!/format! macros in tests
#[cfg(not(feature="collections"))] #[cfg(not(feature="collections"))]
#[allow(unused)]
macro_rules! vec ( macro_rules! vec (
( $ elem : expr ; $ n : expr ) => { () }; ( $ elem : expr ; $ n : expr ) => { () };
( $ ( $ x : expr ) , * ) => { () }; ( $ ( $ x : expr ) , * ) => { () };
( $ ( $ x : expr , ) * ) => { () }; ( $ ( $ x : expr , ) * ) => { () };
); );
#[cfg(not(feature="collections"))] #[cfg(not(feature="collections"))]
#[allow(unused)]
macro_rules! format { macro_rules! format {
( $ ( $ arg : tt ) * ) => { () }; ( $ ( $ arg : tt ) * ) => { () };
} }