Fixed error handling

This commit is contained in:
Gregory Ballantine 2024-05-17 13:56:51 -04:00
parent d2fb7a6ca4
commit 804e041c20

View File

@ -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.");
}