diff --git a/tests/lib.rs b/tests/lib.rs index 1051bbf..b97a938 100644 --- a/tests/lib.rs +++ b/tests/lib.rs @@ -91,12 +91,12 @@ fn test_read_from_blob() { let path = Path::new("tests/data/IMG_5745.JPG"); let mut file = match File::open(&path) { - Err(why) => panic!("couldn't open file: {}", Error::to_string(&why)), + Err(why) => panic!("couldn't open file: {}", ::to_string(&why)), Ok(file) => file, }; let mut data: Vec = Vec::new(); match file.read_to_end(&mut data) { - Err(why) => panic!("couldn't read file: {}", Error::to_string(&why)), + Err(why) => panic!("couldn't read file: {}", ::to_string(&why)), Ok(_) => (), }; assert!(wand.read_image_blob(&data).is_ok());