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;