This happens with the encoder for TIFF: image::tiff::TiffEncoder;
encode() on any other encoder (bmp, ico, jpg, png) returns a Result<()>.
encode() on the tiff encoder returns so-called ImageResult<()>
https://docs.rs/image/0.22.3/image/tiff/struct.TiffEncoder.html
https://docs.rs/image/0.22.3/image/png/struct.PNGEncoder.html
ImageResult<()> is actually IMO the right return type. The other encoders should be updated to return that as well. ImageError already implements From
This seems to be the interface complement of https://github.com/image-rs/image/issues/921. It's not a real duplicate though.
Most helpful comment
ImageResult<()>is actually IMO the right return type. The other encoders should be updated to return that as well. ImageError already implements From