From 58cc21e4fae58cedd586497a220a0bbe285ef831 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Mon, 24 Nov 2025 18:43:52 -0500 Subject: [WARP] Misc cleanup --- plugins/warp/src/plugin/ffi/function.rs | 5 +---- plugins/warp/src/plugin/workflow.rs | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'plugins/warp/src/plugin') diff --git a/plugins/warp/src/plugin/ffi/function.rs b/plugins/warp/src/plugin/ffi/function.rs index e3f6a079..138c0a7b 100644 --- a/plugins/warp/src/plugin/ffi/function.rs +++ b/plugins/warp/src/plugin/ffi/function.rs @@ -68,10 +68,7 @@ pub unsafe extern "C" fn BNWARPFunctionApply( false => { // Set the matched function to `function`. let matched_function = ManuallyDrop::new(Arc::from_raw(function)); - insert_cached_function_match( - &analysis_function, - Some(matched_function.as_ref().clone()), - ) + insert_cached_function_match(&analysis_function, Some(&matched_function)) } true => { // We are removing the previous match. diff --git a/plugins/warp/src/plugin/workflow.rs b/plugins/warp/src/plugin/workflow.rs index fe4eef68..da988581 100644 --- a/plugins/warp/src/plugin/workflow.rs +++ b/plugins/warp/src/plugin/workflow.rs @@ -202,7 +202,7 @@ pub fn run_matcher(view: &BinaryView) { matched_count.fetch_add(1, std::sync::atomic::Ordering::Relaxed); // We were able to find a match, add it to the match cache and then mark the function // as requiring updates; this is so that we know about it in the applier activity. - insert_cached_function_match(function, Some(matched_function.clone())); + insert_cached_function_match(function, Some(matched_function)); } } }); -- cgit v1.3.1