Replace unreachable! with empty enum match

This commit is contained in:
mejrs 2023-06-19 19:48:04 +02:00
parent e664749d61
commit 456efde245
1 changed files with 2 additions and 2 deletions

View File

@ -87,8 +87,8 @@ impl From<&'_ str> for Error {
} }
impl From<std::convert::Infallible> for Error { impl From<std::convert::Infallible> for Error {
fn from(_: std::convert::Infallible) -> Self { fn from(x: std::convert::Infallible) -> Self {
unreachable!() match x {}
} }
} }