summaryrefslogtreecommitdiff
path: root/plugins/warp/src/cache
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-11-24 18:43:52 -0500
committerMason Reed <mason@vector35.com>2025-12-15 17:26:10 -0500
commit58cc21e4fae58cedd586497a220a0bbe285ef831 (patch)
treeb7e0263abbbf079e39f966d1d828593a458275d3 /plugins/warp/src/cache
parent2a899b31320a5ebfba009961f47b8f53b4eadf02 (diff)
[WARP] Misc cleanup
Diffstat (limited to 'plugins/warp/src/cache')
-rw-r--r--plugins/warp/src/cache/function.rs2
-rw-r--r--plugins/warp/src/cache/guid.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/warp/src/cache/function.rs b/plugins/warp/src/cache/function.rs
index a953f514..79b9e86a 100644
--- a/plugins/warp/src/cache/function.rs
+++ b/plugins/warp/src/cache/function.rs
@@ -11,7 +11,7 @@ use warp::signature::function::Function;
/// IMPORTANT: This will mark the function as needing updates, if you intend to fill in functions with
/// no match (i.e. `None`), then you must change this function to prevent marking that as needing updates.
/// However, it's perfectly valid to remove a match and need to update the function still, so be careful.
-pub fn insert_cached_function_match(function: &BNFunction, matched_function: Option<Function>) {
+pub fn insert_cached_function_match(function: &BNFunction, matched_function: Option<&Function>) {
let view = function.view();
let function_start = function.start();
// NOTE: If we expect to run match_function multiple times on a function, we should move this elsewhere.
diff --git a/plugins/warp/src/cache/guid.rs b/plugins/warp/src/cache/guid.rs
index 29e14858..ede54013 100644
--- a/plugins/warp/src/cache/guid.rs
+++ b/plugins/warp/src/cache/guid.rs
@@ -49,7 +49,7 @@ where
// TODO: Implied constraints, symbol name, image offset
let cs_constraints = cached_call_site_constraints(function);
let adj_constraints = cached_adjacency_constraints(function, filter);
- cs_constraints.union(&adj_constraints).cloned().collect()
+ cs_constraints.union(&adj_constraints).copied().collect()
}
pub fn cached_call_site_constraints(function: &BNFunction) -> HashSet<Constraint> {