From 430f59c1938b9e5da381365172ab788b54895ffc Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 14 Jun 2026 14:13:00 +0900 Subject: refactor: auto-fix clippy warnings --- crates/shirabe-php-shim/src/preg.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'crates/shirabe-php-shim/src/preg.rs') diff --git a/crates/shirabe-php-shim/src/preg.rs b/crates/shirabe-php-shim/src/preg.rs index 330ed4d..1429f1c 100644 --- a/crates/shirabe-php-shim/src/preg.rs +++ b/crates/shirabe-php-shim/src/preg.rs @@ -508,12 +508,12 @@ fn single_match_map( for i in 0..group_count { let m = caps.get(i); - if !unmatched_as_null && m.is_none() { - if let Some(last) = last_participating { - if i > last { - break; - } - } + if !unmatched_as_null + && m.is_none() + && let Some(last) = last_participating + && i > last + { + break; } let value = if unmatched_as_null { m.map(|m| m.as_str().to_string()) -- cgit v1.3.1