summaryrefslogtreecommitdiff
path: root/plugins/warp/src/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/warp/src/plugin')
-rw-r--r--plugins/warp/src/plugin/ffi/function.rs5
-rw-r--r--plugins/warp/src/plugin/workflow.rs2
2 files changed, 2 insertions, 5 deletions
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));
}
}
});