Переглянути джерело

Pull in macros from the log crate in tests.

whitequark 8 роки тому
батько
коміт
869b088f68
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      src/lib.rs

+ 1 - 1
src/lib.rs

@@ -76,7 +76,7 @@ extern crate std;
 extern crate libc;
 extern crate libc;
 #[cfg(feature = "use_alloc")]
 #[cfg(feature = "use_alloc")]
 extern crate alloc;
 extern crate alloc;
-#[cfg(feature = "use_log")]
+#[cfg(any(test, feature = "use_log"))]
 #[macro_use(trace, log)]
 #[macro_use(trace, log)]
 extern crate log;
 extern crate log;