From fba4ade234f0eabd96b13c4784315ce70e9a49e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Laignel?= Date: Thu, 7 Nov 2024 09:36:18 +0100 Subject: [PATCH] glib: fix userdata mutability for FnMut callbacks --- glib/src/source.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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::), );