From 9905b3de8636ddb347ae2237042cd64349e06ef9 Mon Sep 17 00:00:00 2001 From: whitequark Date: Tue, 31 Jan 2017 11:46:07 +0000 Subject: [PATCH] Pull in macros from the log crate in tests. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 4522c4b..bb46a6a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -76,7 +76,7 @@ extern crate std; extern crate libc; #[cfg(feature = "use_alloc")] extern crate alloc; -#[cfg(feature = "use_log")] +#[cfg(any(test, feature = "use_log"))] #[macro_use(trace, log)] extern crate log;