Closed andreeaflorescu closed 2 years ago
Do you want something like this? @andreeaflorescu
impl From<BackendError> for Error {
fn from(value: BackendError) -> Self {
Self::Backend(value)
}
}
@ramyak-mehra yes. And the same can also be implemented for JsonFrontendError
. Then, you should also check in the code where the errors are used because you can already do some simplifications.
Without this we need to add boiler plate code when creating custom filters:
If we implement From, then this could be simplified by just having: