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