scanner/error: add From impl for ScanError to public Error
This commit is contained in:
parent
04e07125e6
commit
76c547717d
|
@ -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)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue