Fix warnings in tests

This commit is contained in:
5ohue
2024-05-14 12:22:52 +03:00
parent 8c154511b1
commit e870041015

View File

@ -54,7 +54,7 @@ fn test_resize_image() {
1 => 1, 1 => 1,
height => height / 2, height => height / 2,
}; };
wand.resize_image(halfwidth, halfheight, magick_rust::FilterType::Lanczos); assert!(wand.resize_image(halfwidth, halfheight, magick_rust::FilterType::Lanczos).is_ok());
assert_eq!(256, wand.get_image_width()); assert_eq!(256, wand.get_image_width());
assert_eq!(192, wand.get_image_height()); assert_eq!(192, wand.get_image_height());
} }
@ -76,7 +76,7 @@ fn test_thumbnail_image() {
1 => 1, 1 => 1,
height => height / 2, height => height / 2,
}; };
wand.thumbnail_image(halfwidth, halfheight); assert!(wand.thumbnail_image(halfwidth, halfheight).is_ok());
assert_eq!(256, wand.get_image_width()); assert_eq!(256, wand.get_image_width());
assert_eq!(192, wand.get_image_height()); assert_eq!(192, wand.get_image_height());
} }