rust-cookbook icon indicating copy to clipboard operation
rust-cookbook copied to clipboard

Added ImageError handler to error_chain! macro.

Open Jorge-Gonzalez opened this issue 3 years ago • 0 comments
trafficstars

It is not compiling because of: ? couldn't convert the error to Error --> src/main.rs:90:35 | 67 | fn main() -> Result<()> { | ---------- expected Error because of this ... 90 | let _ = img.save("output.png")?; | ^ the trait From<ImageError> is not implemented for Error

Jorge-Gonzalez avatar Jan 18 '22 04:01 Jorge-Gonzalez