aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-php-shim/src/lib.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-20 16:07:07 +0900
committernsfisis <nsfisis@gmail.com>2026-06-20 16:07:30 +0900
commitc09cd630afb4bb0ca10e926f93bf706ca828ae85 (patch)
tree2147230e858c672cbea6e8dc7295763d98fd48d7 /crates/shirabe-php-shim/src/lib.rs
parent1b38bdb5a1de127ca8040f5a132d08c73ccb3c67 (diff)
downloadphp-shirabe-c09cd630afb4bb0ca10e926f93bf706ca828ae85.tar.gz
php-shirabe-c09cd630afb4bb0ca10e926f93bf706ca828ae85.tar.zst
php-shirabe-c09cd630afb4bb0ca10e926f93bf706ca828ae85.zip
refactor(clippy): resolve idiomatic lint warnings
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe-php-shim/src/lib.rs')
-rw-r--r--crates/shirabe-php-shim/src/lib.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/crates/shirabe-php-shim/src/lib.rs b/crates/shirabe-php-shim/src/lib.rs
index 949c5e2..aa80f53 100644
--- a/crates/shirabe-php-shim/src/lib.rs
+++ b/crates/shirabe-php-shim/src/lib.rs
@@ -1952,10 +1952,8 @@ fn array_replace_recursive_list(
) -> Vec<Box<PhpMixed>> {
for (index, replacement_value) in replacement.into_iter().enumerate() {
if index < base.len() {
- base[index] = Box::new(array_replace_recursive_value(
- (*base[index]).clone(),
- *replacement_value,
- ));
+ *base[index] =
+ array_replace_recursive_value((*base[index]).clone(), *replacement_value);
} else {
base.push(replacement_value);
}