Use cfg_attr to tidy up an extern crate declaration.

This commit is contained in:
Dan Gohman
2018-06-07 11:29:02 -07:00
parent b2b20a95a1
commit f5c1273fcf

View File

@@ -48,10 +48,7 @@ extern crate alloc;
extern crate failure;
#[macro_use]
extern crate failure_derive;
#[cfg(test)]
#[macro_use]
extern crate target_lexicon;
#[cfg(not(test))]
#[cfg_attr(test, macro_use)]
extern crate target_lexicon;
pub use context::Context;