diff --git a/src/color.rs b/src/color.rs index fdab855..7a83d44 100644 --- a/src/color.rs +++ b/src/color.rs @@ -109,6 +109,7 @@ mod tests { #[test] fn from_u8_panic() { for val in 2..=u8::max_value() { + extern crate std; let result = std::panic::catch_unwind(|| Color::from(val)); assert!(result.is_err()); }