Fix missing std-lib in a test
parent
98a9b1c0ed
commit
e17697cfb1
|
|
@ -109,6 +109,7 @@ mod tests {
|
||||||
#[test]
|
#[test]
|
||||||
fn from_u8_panic() {
|
fn from_u8_panic() {
|
||||||
for val in 2..=u8::max_value() {
|
for val in 2..=u8::max_value() {
|
||||||
|
extern crate std;
|
||||||
let result = std::panic::catch_unwind(|| Color::from(val));
|
let result = std::panic::catch_unwind(|| Color::from(val));
|
||||||
assert!(result.is_err());
|
assert!(result.is_err());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue