From 1c079c950107bc4c4c079eba59f58f037323e9e7 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 30 Aug 2017 23:40:31 +0200 Subject: [PATCH] Import libimagutil properly --- bin/core/imag-link/src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/core/imag-link/src/main.rs b/bin/core/imag-link/src/main.rs index 6e3a92b8..f752558d 100644 --- a/bin/core/imag-link/src/main.rs +++ b/bin/core/imag-link/src/main.rs @@ -44,10 +44,13 @@ extern crate libimagrt; extern crate libimagstore; extern crate libimagerror; -#[allow(unused_imports)] +#[cfg(test)] #[macro_use] extern crate libimagutil; +#[cfg(not(test))] +extern crate libimagutil; + use std::ops::Deref; use libimagrt::runtime::Runtime;