From e17697cfb18c3e5847bac9dfe52b64b56575fb7c Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 18 Oct 2018 16:09:23 +0200 Subject: [PATCH] Fix missing std-lib in a test --- src/color.rs | 1 + 1 file changed, 1 insertion(+) 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()); }