From 53980774c327675e886179c0a2c140744dcf9b95 Mon Sep 17 00:00:00 2001 From: Jonas Maier Date: Sat, 6 Jun 2026 12:15:52 +0200 Subject: special cased regex for performance --- src/parse/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/parse/mod.rs') diff --git a/src/parse/mod.rs b/src/parse/mod.rs index 407cebd..8530aab 100644 --- a/src/parse/mod.rs +++ b/src/parse/mod.rs @@ -1922,7 +1922,7 @@ impl Parse for Pipes { #[derive(Debug, Clone, PartialEq)] pub struct CaseBranch { - pub pattern: regex::Pattern, + pub pattern: crate::regex::Pattern, pub block: Block, } @@ -1953,7 +1953,7 @@ impl Parse for CaseBranch { fn parse(b: &mut Cursor<'_>) -> Result { b.spaces(); - let pattern = regex::Pattern::parse(b)?; + let pattern = crate::regex::Pattern::parse(b)?; let block = Block::parse(b)?; Ok(Self { pattern, block }) -- cgit v1.2.3