From 64e9b651b4c6c889d1c11bd0debf2d0ac8a27285 Mon Sep 17 00:00:00 2001 From: Fabian Date: Thu, 5 Oct 2023 13:57:32 -0500 Subject: [PATCH] remove useless .clone() --- src/rust/jit.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rust/jit.rs b/src/rust/jit.rs index b257dce631..c912b642e8 100644 --- a/src/rust/jit.rs +++ b/src/rust/jit.rs @@ -686,7 +686,7 @@ fn jit_find_basic_blocks( .range(..current_block.addr) .next_back() .filter(|(_, previous_block)| (!previous_block.has_sti)) - .map(|(_, previous_block)| previous_block.clone()); + .map(|(_, previous_block)| previous_block); if let Some(previous_block) = previous_block { if current_block.addr < previous_block.end_addr {