From 083546442df31cf4a77bf95938e042b75bc31a90 Mon Sep 17 00:00:00 2001 From: Skgland Date: Sat, 24 Jan 2026 02:22:44 +0100 Subject: [PATCH] make match exhaustive --- src/parser/ast.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/parser/ast.rs b/src/parser/ast.rs index 0d789c33..fe28207b 100644 --- a/src/parser/ast.rs +++ b/src/parser/ast.rs @@ -473,7 +473,9 @@ impl ParserError { | ParserError::ParseBigInt(location) | ParserError::UnexpectedChar(_, location) => Some(location.clone()), ParserError::Utf8Error(location) => location.as_ref().cloned(), - _ => None, + ParserError::IO(_) + | ParserError::LexicalError(_) + | ParserError::InvalidSingleQuotedCharacter(_) => None, } } -- 2.54.0