Skip to content

Commit ef635d2

Browse files
committed
desktop_app_info: Don't borrow mutable fds
1 parent 42adb11 commit ef635d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gio/src/desktop_app_info.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ pub trait DesktopAppInfoExtManual: IsA<DesktopAppInfo> {
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
let user_setup_data: Box_<Option<Box_<dyn FnOnce() + 'static>>> = Box_::new(user_setup);
6363
unsafe extern "C" fn user_setup_func(user_data: glib::ffi::gpointer) {

0 commit comments

Comments
 (0)