diff --git a/melib/src/error.rs b/melib/src/error.rs index f741d96a..3a395ff6 100644 --- a/melib/src/error.rs +++ b/melib/src/error.rs @@ -604,6 +604,12 @@ impl From for ErrorKind { } } +impl From for Error { + fn from(_: std::convert::Infallible) -> Self { + unreachable!() + } +} + impl From for Error { fn from(err: io::Error) -> Self { let s = err.to_string();