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 authored and sdroege committed Nov 8, 2024
1 parent 96aa7b0 commit fba4ade
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 fba4ade

Please sign in to comment.