aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-class-map-generator/src
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-08-17 03:58:46 +0900
committernsfisis <nsfisis@gmail.com>2026-08-17 03:58:46 +0900
commitdc0cc70f6916810f326d6019a4bec90ca2915904 (patch)
tree7e687ca2fe901d5ac97404222d426fdbc0748a1c /crates/shirabe-class-map-generator/src
parent879affc50810e1ebb20687265a9a4e9801e21af2 (diff)
downloadphp-shirabe-dc0cc70f6916810f326d6019a4bec90ca2915904.tar.gz
php-shirabe-dc0cc70f6916810f326d6019a4bec90ca2915904.tar.zst
php-shirabe-dc0cc70f6916810f326d6019a4bec90ca2915904.zip
refactor(preg): drop Option wrapper from matches arg of match_all*()
Every caller of Preg::match_all3()/is_match_all3() passed Some(&mut _), so the argument is now a plain &mut. Preg::match_all() keeps the no-captures form with a local throwaway map, and the arity suffixes are renumbered accordingly (match_all2(), is_match_all()). Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe-class-map-generator/src')
-rw-r--r--crates/shirabe-class-map-generator/src/php_file_parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/shirabe-class-map-generator/src/php_file_parser.rs b/crates/shirabe-class-map-generator/src/php_file_parser.rs
index e6eeb028..b35988fb 100644
--- a/crates/shirabe-class-map-generator/src/php_file_parser.rs
+++ b/crates/shirabe-class-map-generator/src/php_file_parser.rs
@@ -86,7 +86,7 @@ impl PhpFileParser {
et = extra_types
);
let mut matches: IndexMap<_, _> = IndexMap::new();
- Preg::match_all3(&pattern2, &contents, Some(&mut matches));
+ Preg::match_all2(&pattern2, &contents, &mut matches);
let mut classes = vec![];
let mut namespace = String::new();