Skip to content

Commit

Permalink
Appease clippy nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
seanyoung committed Apr 8, 2024
1 parent 34c203b commit 87ab5b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/static_analysis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<C>, &Executable<TestContextObject>>(executable)
},
instructions,
functions,
cfg_nodes: BTreeMap::new(),
Expand Down

0 comments on commit 87ab5b9

Please sign in to comment.