summaryrefslogtreecommitdiff
path: root/plugins/warp/src/cache.rs
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2024-11-04 01:48:03 -0500
committerMason Reed <mason@vector35.com>2024-11-04 01:48:03 -0500
commit7743af0603a2568ad28a1b152153eabce8c52dd7 (patch)
tree082d2e33e321fa453c4b6230e679e89d87c19ef6 /plugins/warp/src/cache.rs
parent393c7fb508b465b0cb096d46eaaefc08030e9fed (diff)
WARP: Misc formatting and remove useless apply command
Diffstat (limited to 'plugins/warp/src/cache.rs')
-rw-r--r--plugins/warp/src/cache.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/warp/src/cache.rs b/plugins/warp/src/cache.rs
index 9364de0d..025c37df 100644
--- a/plugins/warp/src/cache.rs
+++ b/plugins/warp/src/cache.rs
@@ -199,14 +199,16 @@ impl GUIDCache {
// Call site is a function, constrain on it.
let cs_ref_func_id = FunctionID::from(cs_ref_func.as_ref());
if cs_ref_func_id != func_id {
- let call_site_offset: i64 = call_site.address.wrapping_sub(func_start) as i64;
+ let call_site_offset: i64 =
+ call_site.address.wrapping_sub(func_start) as i64;
constraints
.insert(self.function_constraint(&cs_ref_func, call_site_offset));
}
}
Err(_) => {
// We could be dealing with an extern symbol, get the symbol as a constraint.
- let call_site_offset: i64 = call_site.address.wrapping_sub(func_start) as i64;
+ let call_site_offset: i64 =
+ call_site.address.wrapping_sub(func_start) as i64;
if let Ok(call_site_sym) = view.symbol_by_address(cs_ref_addr) {
constraints.insert(
self.function_constraint_from_symbol(