Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
aviramha committed Jun 26, 2024
1 parent 57903f1 commit d801a43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frida/src/script.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ impl<'a> Script<'a> {
pub fn handle_message<I: ScriptHandler>(&self, handler: &mut I) -> Result<()> {
let message = CString::new("message").map_err(|_| Error::CStringFailed)?;
unsafe {
let callback = Some(std::mem::transmute(call_on_message::<I> as *mut c_void));
let callback = Some(std::mem::transmute::<*mut std::ffi::c_void, unsafe extern "C" fn()>(call_on_message::<I> as *mut c_void));

frida_sys::g_signal_connect_data(
self.script_ptr as _,
Expand Down

0 comments on commit d801a43

Please sign in to comment.