Skip to content

Commit

Permalink
wip: desktop_app_info: Don't borrow mutable fds
Browse files Browse the repository at this point in the history
Is this change ok?
  • Loading branch information
A6GibKm committed Dec 28, 2022
1 parent 1a275ac commit ec13f5d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions gio/src/desktop_app_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ pub trait DesktopAppInfoExtManual {
spawn_flags: glib::SpawnFlags,
user_setup: Option<Box_<dyn FnOnce() + 'static>>,
pid_callback: Option<&mut dyn (FnMut(&DesktopAppInfo, glib::Pid))>,
stdin_fd: &mut T,
stdout_fd: &mut U,
stderr_fd: &mut V,
stdin_fd: &T,
stdout_fd: &U,
stderr_fd: &V,
) -> Result<(), Error>;
}

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

0 comments on commit ec13f5d

Please sign in to comment.