Skip to content

Commit

Permalink
clippy transmute annotation lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Pat-Lafon committed Jun 17, 2024
1 parent a9925d5 commit 4c0d115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brilift/src/translator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@ impl Translator<JITModule> {
pub unsafe fn run(&mut self, func_id: cranelift_module::FuncId, args: &[bril::Literal]) {
let func_ptr = self.get_func_ptr(func_id);
let arg_ptrs = Self::val_ptrs(args);
let func = mem::transmute::<_, fn(*const *const u8) -> ()>(func_ptr);
let func = mem::transmute::<*const u8, fn(*const *const u8) -> ()>(func_ptr);
func(arg_ptrs.as_ptr());
}
}
Expand Down

0 comments on commit 4c0d115

Please sign in to comment.