Avoid unused macro warnings.
This commit is contained in:
parent
1a62a818c3
commit
9c41fb9000
|
@ -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 ) * ) => { () };
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue