Skip to content

Commit

Permalink
glib: fix userdata mutability for FnMut callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
fengalin committed Nov 7, 2024
1 parent 8e236c0 commit 8e29f88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions glib/src/source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1092,9 +1092,9 @@ where
ffi::g_source_set_callback(
source,
Some(transmute::<
*const (),
*mut (),
unsafe extern "C" fn(ffi::gpointer) -> ffi::gboolean,
>(trampoline_child_watch::<F> as *const ())),
>(trampoline_child_watch::<F> as *mut ())),
into_raw_child_watch(func),
Some(destroy_closure_child_watch::<F>),
);
Expand Down

0 comments on commit 8e29f88

Please sign in to comment.