Utilize `cfg_attr` instead of duplicating code

This commit is contained in:
Jonas Schievink 2017-06-14 01:30:33 +02:00
parent 8440298e71
commit 6b651820b6
1 changed files with 1 additions and 5 deletions

View File

@ -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]