Skip to content

Commit 975aac3

Browse files
committed
gio: Fix some new 1.88 clippy warnings
1 parent f56ae65 commit 975aac3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gio/src/desktop_app_info.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pub trait DesktopAppInfoExtManual: IsA<DesktopAppInfo> {
5454
launch_context: Option<&P>,
5555
spawn_flags: glib::SpawnFlags,
5656
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)>,
5858
stdin_fd: Option<impl AsFd>,
5959
stdout_fd: Option<impl AsFd>,
6060
stderr_fd: Option<impl AsFd>,
@@ -71,15 +71,15 @@ pub trait DesktopAppInfoExtManual: IsA<DesktopAppInfo> {
7171
} else {
7272
None
7373
};
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;
7575
unsafe extern "C" fn pid_callback_func(
7676
appinfo: *mut ffi::GDesktopAppInfo,
7777
pid: glib::ffi::GPid,
7878
user_data: glib::ffi::gpointer,
7979
) {
8080
let appinfo = from_glib_borrow(appinfo);
8181
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)>;
8383
if let Some(ref mut callback) = *callback {
8484
callback(&appinfo, pid)
8585
} else {
@@ -92,7 +92,7 @@ pub trait DesktopAppInfoExtManual: IsA<DesktopAppInfo> {
9292
None
9393
};
9494
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)> =
9696
&pid_callback_data;
9797

9898
let stdin_raw_fd = stdin_fd.map_or(-1, |fd| fd.as_fd().as_raw_fd());

0 commit comments

Comments
 (0)