From 6af236e0029f7964f87f84f5da9217e31fbaa460 Mon Sep 17 00:00:00 2001 From: Intege-rs Date: Sun, 7 Dec 2025 23:50:37 -0500 Subject: [PATCH] expose parser error types --- sub/xpat/src/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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",