From 87ab5b9d14ef067c33dcb28541a9ab69388c4a7f Mon Sep 17 00:00:00 2001 From: Sean Young Date: Mon, 8 Apr 2024 16:44:14 +0100 Subject: [PATCH] Appease clippy nightly --- src/static_analysis.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/static_analysis.rs b/src/static_analysis.rs index 6bea90a1..aa5d0ae3 100644 --- a/src/static_analysis.rs +++ b/src/static_analysis.rs @@ -180,7 +180,9 @@ impl<'a> Analysis<'a> { } let mut result = Self { // Removes the generic ContextObject which is safe because we are not going to execute the program - executable: unsafe { std::mem::transmute(executable) }, + executable: unsafe { + std::mem::transmute::<&Executable, &Executable>(executable) + }, instructions, functions, cfg_nodes: BTreeMap::new(),