You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can strum::ParseError be "not implemented" if it's part of "the following other types" that are implemented?:
error[E0277]: `?` couldn't convert the error to `CustomError`
--> src/operation.rs:107:47
|
107 | let name = CustomName::from_str(name)?;
| ^ the trait `From<strum::ParseError>` is not implemented for `CustomError`
|
= 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>`:
<CustomErrorasFrom<strum::ParseError>>
= note: required for `Result<std::option::Option<CustomStuff>,CustomError>` to implement `FromResidual<Result<Infallible, strum::ParseError>>`
It is only an issue if I add AsRefStr derive from strum:
How can
strum::ParseError
be "not implemented" if it's part of "the following other types" that are implemented?:It is only an issue if I add
AsRefStr
derive fromstrum
:The text was updated successfully, but these errors were encountered: