From b7ffae965e39bfd6023994305b97a99c000cbf81 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 14 Jun 2026 13:30:49 +0900 Subject: refactor(pcre): take &mut matches in preg_*2 shim helpers The optional matches output was always passed Some(&mut ...) at every call site, so the Option wrapper added no value. Take &mut directly and inline the former internal helpers. Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe/src/console/application.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/shirabe') diff --git a/crates/shirabe/src/console/application.rs b/crates/shirabe/src/console/application.rs index 2bd4017..37c0bb0 100644 --- a/crates/shirabe/src/console/application.rs +++ b/crates/shirabe/src/console/application.rs @@ -2708,7 +2708,7 @@ impl Application { while shirabe_php_shim::preg_match2( r"/.{1,10000}/u", &utf8_string, - Some(&mut m), + &mut m, 0, offset as usize, ) { -- cgit v1.3.1