@@ -54,7 +54,7 @@ pub trait DesktopAppInfoExtManual: IsA<DesktopAppInfo> {
54
54
launch_context : Option < & P > ,
55
55
spawn_flags : glib:: SpawnFlags ,
56
56
user_setup : Option < Box_ < dyn FnOnce ( ) + ' static > > ,
57
- pid_callback : Option < & mut dyn ( FnMut ( & DesktopAppInfo , glib:: Pid ) ) > ,
57
+ pid_callback : Option < & mut dyn FnMut ( & DesktopAppInfo , glib:: Pid ) > ,
58
58
stdin_fd : Option < impl AsFd > ,
59
59
stdout_fd : Option < impl AsFd > ,
60
60
stderr_fd : Option < impl AsFd > ,
@@ -71,15 +71,15 @@ pub trait DesktopAppInfoExtManual: IsA<DesktopAppInfo> {
71
71
} else {
72
72
None
73
73
} ;
74
- let pid_callback_data: Option < & mut dyn ( FnMut ( & DesktopAppInfo , glib:: Pid ) ) > = pid_callback;
74
+ let pid_callback_data: Option < & mut dyn FnMut ( & DesktopAppInfo , glib:: Pid ) > = pid_callback;
75
75
unsafe extern "C" fn pid_callback_func (
76
76
appinfo : * mut ffi:: GDesktopAppInfo ,
77
77
pid : glib:: ffi:: GPid ,
78
78
user_data : glib:: ffi:: gpointer ,
79
79
) {
80
80
let appinfo = from_glib_borrow ( appinfo) ;
81
81
let pid = from_glib ( pid) ;
82
- let callback = user_data as * mut Option < & mut dyn ( FnMut ( & DesktopAppInfo , glib:: Pid ) ) > ;
82
+ let callback = user_data as * mut Option < & mut dyn FnMut ( & DesktopAppInfo , glib:: Pid ) > ;
83
83
if let Some ( ref mut callback) = * callback {
84
84
callback ( & appinfo, pid)
85
85
} else {
@@ -92,7 +92,7 @@ pub trait DesktopAppInfoExtManual: IsA<DesktopAppInfo> {
92
92
None
93
93
} ;
94
94
let super_callback0: Box_ < Option < Box_ < dyn FnOnce ( ) + ' static > > > = user_setup_data;
95
- let super_callback1: & Option < & mut dyn ( FnMut ( & DesktopAppInfo , glib:: Pid ) ) > =
95
+ let super_callback1: & Option < & mut dyn FnMut ( & DesktopAppInfo , glib:: Pid ) > =
96
96
& pid_callback_data;
97
97
98
98
let stdin_raw_fd = stdin_fd. map_or ( -1 , |fd| fd. as_fd ( ) . as_raw_fd ( ) ) ;
0 commit comments