Import PanicInfo only in non(test) environment

This commit is contained in:
Philipp Oppermann
2018-06-05 11:11:25 +02:00
parent cc6396ec56
commit 3e3778d982

View File

@@ -13,6 +13,7 @@ extern crate array_init;
#[cfg(test)] #[cfg(test)]
extern crate std; extern crate std;
#[cfg(not(test))]
use core::panic::PanicInfo; use core::panic::PanicInfo;
#[macro_use] #[macro_use]