diff --git a/src/scanner/error.rs b/src/scanner/error.rs index f867f26..fb06d64 100644 --- a/src/scanner/error.rs +++ b/src/scanner/error.rs @@ -131,3 +131,11 @@ impl From for ErrorCode } } } + +impl From for crate::error::Error +{ + fn from(err: ScanError) -> Self + { + crate::error::mkError!(err, CODE) + } +}