Skip to content

Commit 8e29f88

Browse files
committed
glib: fix userdata mutability for FnMut callbacks
1 parent 8e236c0 commit 8e29f88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

glib/src/source.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,9 +1092,9 @@ where
10921092
ffi::g_source_set_callback(
10931093
source,
10941094
Some(transmute::<
1095-
*const (),
1095+
*mut (),
10961096
unsafe extern "C" fn(ffi::gpointer) -> ffi::gboolean,
1097-
>(trampoline_child_watch::<F> as *const ())),
1097+
>(trampoline_child_watch::<F> as *mut ())),
10981098
into_raw_child_watch(func),
10991099
Some(destroy_closure_child_watch::<F>),
11001100
);

0 commit comments

Comments
 (0)