From 3e3778d982a73c8d9e5075392fcebf02a68e9d60 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Tue, 5 Jun 2018 11:11:25 +0200 Subject: [PATCH] Import PanicInfo only in non(test) environment --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 3d1d6282..f4efc5bf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -13,6 +13,7 @@ extern crate array_init; #[cfg(test)] extern crate std; +#[cfg(not(test))] use core::panic::PanicInfo; #[macro_use]