Utilize `cfg_attr` instead of duplicating code
This commit is contained in:
parent
8440298e71
commit
6b651820b6
|
@ -1,8 +1,4 @@
|
||||||
#[cfg(test)]
|
#[cfg_attr(test, macro_use)]
|
||||||
#[macro_use]
|
|
||||||
extern crate hlist_macro;
|
|
||||||
|
|
||||||
#[cfg(not(test))]
|
|
||||||
extern crate hlist_macro;
|
extern crate hlist_macro;
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
|
|
Loading…
Reference in New Issue