From c71e4741ddbcd707e01dab74894e3f1983d62e0e Mon Sep 17 00:00:00 2001 From: Intege-rs Date: Sun, 7 Dec 2025 23:48:35 -0500 Subject: [PATCH] expose parser error types --- sub/xpat/src/parser.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sub/xpat/src/parser.rs b/sub/xpat/src/parser.rs index 2706600..38a40d4 100644 --- a/sub/xpat/src/parser.rs +++ b/sub/xpat/src/parser.rs @@ -8,8 +8,8 @@ pub(crate) const PTR_SKIP: u8 = 0; /// Pattern parsing error. #[derive(Copy, Clone, Debug, Eq, PartialEq)] pub struct ParsePatError { - kind: PatError, - position: usize, + pub kind: PatError, + pub position: usize, } impl fmt::Display for ParsePatError { @@ -19,7 +19,7 @@ impl fmt::Display for ParsePatError { } #[derive(Copy, Clone, Debug, Eq, PartialEq)] -enum PatError { +pub enum PatError { UnpairedHexDigit, UnknownChar, ManyOverflow,