From 131a5cf148597d4590c806b19e4317cfdd1b713d Mon Sep 17 00:00:00 2001 From: Gregory Ballantine Date: Fri, 17 May 2024 13:57:12 -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 a99f5a0..35aadba 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,7 +2,7 @@ use image::io::Reader as ImageReader; fn main() { println!("Converting test.webp to test.png."); - let img_raw = ImageReader::open("test.webp").expect("Failed to load test.webp.") + 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").expect("Failed to save test.png."); println!("Done.");