expose parser error types
This commit is contained in:
@@ -37,7 +37,7 @@ pub enum PatError {
|
|||||||
DoubleNibble
|
DoubleNibble
|
||||||
}
|
}
|
||||||
impl PatError {
|
impl PatError {
|
||||||
fn to_str(self) -> &'static str {
|
pub fn to_str(self) -> &'static str {
|
||||||
match self {
|
match self {
|
||||||
PatError::UnpairedHexDigit => "unpaired hex digit",
|
PatError::UnpairedHexDigit => "unpaired hex digit",
|
||||||
PatError::UnknownChar => "unknown character",
|
PatError::UnknownChar => "unknown character",
|
||||||
|
|||||||
Reference in New Issue
Block a user