From d71c9b823311e2a040230c3c255a1ac688a7ce70 Mon Sep 17 00:00:00 2001 From: jkrvivian Date: Thu, 31 Oct 2024 21:43:55 +0800 Subject: [PATCH] chores: Format codes --- .../iota-adapter/src/programmable_transactions/context.rs | 4 +--- .../latest/iota-move-natives/src/test_scenario.rs | 7 +------ iota-execution/v0/iota-move-natives/src/test_scenario.rs | 7 +------ 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/iota-execution/latest/iota-adapter/src/programmable_transactions/context.rs b/iota-execution/latest/iota-adapter/src/programmable_transactions/context.rs index 73abed4d94d..3e9f81459bf 100644 --- a/iota-execution/latest/iota-adapter/src/programmable_transactions/context.rs +++ b/iota-execution/latest/iota-adapter/src/programmable_transactions/context.rs @@ -1351,9 +1351,7 @@ mod checked { object_value: ObjectValue, ) -> Result<(), ExecutionError> { let ObjectValue { - type_, - contents, - .. + type_, contents, .. } = object_value; let bytes = match contents { ObjectContents::Coin(coin) => coin.to_bcs_bytes(), diff --git a/iota-execution/latest/iota-move-natives/src/test_scenario.rs b/iota-execution/latest/iota-move-natives/src/test_scenario.rs index d0e77e07156..886566ce583 100644 --- a/iota-execution/latest/iota-move-natives/src/test_scenario.rs +++ b/iota-execution/latest/iota-move-natives/src/test_scenario.rs @@ -612,12 +612,7 @@ pub fn allocate_receiving_ticket_for_object( )); }; let move_object = unsafe { - MoveObject::new_from_execution_with_limit( - tag.into(), - object_version, - bytes, - 250 * 1024, - ) + MoveObject::new_from_execution_with_limit(tag.into(), object_version, bytes, 250 * 1024) } .unwrap(); diff --git a/iota-execution/v0/iota-move-natives/src/test_scenario.rs b/iota-execution/v0/iota-move-natives/src/test_scenario.rs index d0e77e07156..886566ce583 100644 --- a/iota-execution/v0/iota-move-natives/src/test_scenario.rs +++ b/iota-execution/v0/iota-move-natives/src/test_scenario.rs @@ -612,12 +612,7 @@ pub fn allocate_receiving_ticket_for_object( )); }; let move_object = unsafe { - MoveObject::new_from_execution_with_limit( - tag.into(), - object_version, - bytes, - 250 * 1024, - ) + MoveObject::new_from_execution_with_limit(tag.into(), object_version, bytes, 250 * 1024) } .unwrap();