Skip to content

Commit ec13f5d

Browse files
committed
wip: desktop_app_info: Don't borrow mutable fds
Is this change ok?
1 parent 1a275ac commit ec13f5d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

gio/src/desktop_app_info.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ pub trait DesktopAppInfoExtManual {
5555
spawn_flags: glib::SpawnFlags,
5656
user_setup: Option<Box_<dyn FnOnce() + 'static>>,
5757
pid_callback: Option<&mut dyn (FnMut(&DesktopAppInfo, glib::Pid))>,
58-
stdin_fd: &mut T,
59-
stdout_fd: &mut U,
60-
stderr_fd: &mut V,
58+
stdin_fd: &T,
59+
stdout_fd: &U,
60+
stderr_fd: &V,
6161
) -> Result<(), Error>;
6262
}
6363

@@ -71,9 +71,9 @@ impl<O: IsA<DesktopAppInfo>> DesktopAppInfoExtManual for O {
7171
spawn_flags: glib::SpawnFlags,
7272
user_setup: Option<Box_<dyn FnOnce() + 'static>>,
7373
pid_callback: Option<&mut dyn (FnMut(&DesktopAppInfo, glib::Pid))>,
74-
stdin_fd: &mut T,
75-
stdout_fd: &mut U,
76-
stderr_fd: &mut V,
74+
stdin_fd: &T,
75+
stdout_fd: &U,
76+
stderr_fd: &V,
7777
) -> Result<(), Error> {
7878
let user_setup_data: Box_<Option<Box_<dyn FnOnce() + 'static>>> = Box_::new(user_setup);
7979
unsafe extern "C" fn user_setup_func<P: IsA<AppLaunchContext>>(

0 commit comments

Comments
 (0)