diff options
Diffstat (limited to 'plugins/warp/src/cache')
| -rw-r--r-- | plugins/warp/src/cache/function.rs | 2 | ||||
| -rw-r--r-- | plugins/warp/src/cache/guid.rs | 2 |
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> { |
