From 804e041c20e3c66be4592f8d247b36e42be8a244 Mon Sep 17 00:00:00 2001 From: Gregory Ballantine Date: Fri, 17 May 2024 13:56:51 -0400 Subject: [PATCH] Fixed error handling --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 4804f03..a99f5a0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,6 +4,6 @@ fn main() { println!("Converting test.webp to test.png."); let img_raw = ImageReader::open("test.webp").expect("Failed to load test.webp.") let img = img_raw.decode().expect("Failed to decode the image."); - img.save("test.png").("Failed to save test.png."); + img.save("test.png").expect("Failed to save test.png."); println!("Done."); }