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