From e87004101538b88e5281d9debfa0847f42b92f4d Mon Sep 17 00:00:00 2001 From: 5ohue <86558263+5ohue@users.noreply.github.com> Date: Tue, 14 May 2024 12:22:52 +0300 Subject: [PATCH] Fix warnings in tests --- tests/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/lib.rs b/tests/lib.rs index 759fb0c..f929aa4 100644 --- a/tests/lib.rs +++ b/tests/lib.rs @@ -54,7 +54,7 @@ fn test_resize_image() { 1 => 1, 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!(192, wand.get_image_height()); } @@ -76,7 +76,7 @@ fn test_thumbnail_image() { 1 => 1, 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!(192, wand.get_image_height()); }