diff --git a/src/wand/macros.rs b/src/wand/macros.rs index f3660bc..5b85626 100644 --- a/src/wand/macros.rs +++ b/src/wand/macros.rs @@ -135,7 +135,7 @@ macro_rules! set_get_unchecked { } )* pub fn fmt_unchecked_settings(&self, f: &mut ::std::fmt::Formatter, prefix: &str) -> ::std::fmt::Result { - $( writeln!(f, "{}{:<50}: {:?}", prefix, stringify!($c_get), self.$get()); )* + $( writeln!(f, "{}{:<50}: {:?}", prefix, stringify!($c_get), self.$get())?; )* Ok(()) } } diff --git a/tests/lib.rs b/tests/lib.rs index afa4e80..89d31ff 100644 --- a/tests/lib.rs +++ b/tests/lib.rs @@ -68,12 +68,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::description(&why)), + Err(why) => panic!("couldn't open file: {}", Error::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::description(&why)), + Err(why) => panic!("couldn't read file: {}", Error::to_string(&why)), Ok(_) => (), }; assert!(wand.read_image_blob(&data).is_ok());