From 7a67f76ed8b4565c3d127af4f1328591c5281c3f Mon Sep 17 00:00:00 2001 From: nk_ysg Date: Wed, 1 Jan 2025 22:56:50 +0800 Subject: [PATCH] [integration] rm redundant clone (#3144) [integration] rm redundant clone --- crates/rooch-types/src/transaction/rooch.rs | 2 +- crates/testsuite/tests/integration.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/rooch-types/src/transaction/rooch.rs b/crates/rooch-types/src/transaction/rooch.rs index dc7bda1a91..90ce119d46 100644 --- a/crates/rooch-types/src/transaction/rooch.rs +++ b/crates/rooch-types/src/transaction/rooch.rs @@ -232,7 +232,7 @@ impl RoochTransaction { } else { let hash = self.data.tx_hash(); self.data_hash = Some(hash); - self.data_hash.unwrap() + hash } } diff --git a/crates/testsuite/tests/integration.rs b/crates/testsuite/tests/integration.rs index 314e275ab7..25e3ee3fa6 100644 --- a/crates/testsuite/tests/integration.rs +++ b/crates/testsuite/tests/integration.rs @@ -496,7 +496,7 @@ fn bitcoincli_run_cmd(w: &mut World, input_tpl: String) { bitcoincli_args.extend(args.iter().map(|&s| s.to_string())); let joined_args = bitcoincli_args.join(" "); - debug!("run cmd: {}", joined_args.clone()); + debug!("run cmd: {}", joined_args); let exec_cmd = ExecCommand { cmd: joined_args.clone(),