scanner/error: add From impl for ScanError to public Error

This commit is contained in:
Paul Stemmet 2022-03-27 09:08:55 +00:00 committed by Paul Stemmet
parent 04e07125e6
commit 76c547717d

View file

@ -131,3 +131,11 @@ impl From<ScanError> for ErrorCode
} }
} }
} }
impl From<ScanError> for crate::error::Error
{
fn from(err: ScanError) -> Self
{
crate::error::mkError!(err, CODE)
}
}