Compiling ril v0.9.0
error[E0277]: `?` couldn't convert the error to `error::Error`
--> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/ril-0.9.0/src/encodings/jpeg.rs:94:10
|
94 | )?;
| ^ the trait `From<jpeg_encoder::EncodingError>` is not implemented for `error::Error`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `From<T>`:
<error::Error as From<DecodingError>>
<error::Error as From<jpeg_decoder::Error>>
<error::Error as From<png::EncodingError>>
<error::Error as From<std::io::Error>>
= note: required for `std::result::Result<(), error::Error>` to implement `FromResidual<std::result::Result<Infallible, jpeg_encoder::EncodingError>>`
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
**Cargo.toml**
ril = { version = "0.9", default-features = false, features = [
"png",
"jpeg",
"webp",
"gif", <--------------- If this is removed, compile fails
] }