diff --git a/sub/xpat/src/parser.rs b/sub/xpat/src/parser.rs index 38a40d4..2edae3e 100644 --- a/sub/xpat/src/parser.rs +++ b/sub/xpat/src/parser.rs @@ -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",