rust-lang-nursery / rust-cookbook

https://rust-lang-nursery.github.io/rust-cookbook
Creative Commons Zero v1.0 Universal
2.24k stars 286 forks source link

Added ImageError handler to error_chain! macro. #655

Open Jorge-Gonzalez opened 2 years ago

Jorge-Gonzalez commented 2 years ago

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