diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-14 13:30:49 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-14 13:30:49 +0900 |
| commit | b7ffae965e39bfd6023994305b97a99c000cbf81 (patch) | |
| tree | 62fbc076f0a0536fe3f86957ebb43cf2126f4abc /crates/shirabe/src | |
| parent | 614616d4ceeb78dcf22df3e36a0fceb4c2d110c8 (diff) | |
| download | php-shirabe-b7ffae965e39bfd6023994305b97a99c000cbf81.tar.gz php-shirabe-b7ffae965e39bfd6023994305b97a99c000cbf81.tar.zst php-shirabe-b7ffae965e39bfd6023994305b97a99c000cbf81.zip | |
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) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src')
| -rw-r--r-- | crates/shirabe/src/console/application.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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, ) { |
