From c839244d8d09f3036ebfee8eef7eb6b147e593ab Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 19 May 2026 00:10:22 +0900 Subject: fix(compile): fix various compile errors Co-Authored-By: Claude Sonnet 4.6 --- crates/shirabe/src/json/json_manipulator.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'crates/shirabe/src/json/json_manipulator.rs') diff --git a/crates/shirabe/src/json/json_manipulator.rs b/crates/shirabe/src/json/json_manipulator.rs index ebbfff9..b9c6a5c 100644 --- a/crates/shirabe/src/json/json_manipulator.rs +++ b/crates/shirabe/src/json/json_manipulator.rs @@ -128,8 +128,7 @@ impl JsonManipulator { JsonFile::encode( &PhpMixed::String(str_replace("\\/", "/", &existing_owned)), 0 - ) - .unwrap_or_default(), + ), m.get("separator").cloned().unwrap_or_default(), constraint_owned ) @@ -1024,7 +1023,7 @@ impl JsonManipulator { if now_empty { arr.insert( name_owned.clone(), - Box::new(PhpMixed::Object(ArrayObject::new())), + Box::new(PhpMixed::Object(ArrayObject::new(None))), ); } } @@ -1068,7 +1067,7 @@ impl JsonManipulator { if now_empty { arr.insert( name_capture.clone(), - Box::new(PhpMixed::Object(ArrayObject::new())), + Box::new(PhpMixed::Object(ArrayObject::new(None))), ); } } -- cgit v1.3.1