diff --git a/glib/src/source.rs b/glib/src/source.rs index ba0ba5f7e85d..d410d6993034 100644 --- a/glib/src/source.rs +++ b/glib/src/source.rs @@ -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:: as *const ())), + >(trampoline_child_watch:: as *mut ())), into_raw_child_watch(func), Some(destroy_closure_child_watch::), );