@@ -8,7 +8,7 @@ use std::mem;
8
8
#[ cfg( feature = "v2_58" ) ]
9
9
use std:: os:: unix:: io:: AsRawFd ;
10
10
#[ cfg( not( windows) ) ]
11
- use std:: os:: unix:: io:: { FromRawFd , IntoRawFd , RawFd } ;
11
+ use std:: os:: unix:: io:: { AsFd , FromRawFd , IntoRawFd , RawFd } ;
12
12
use std:: ptr;
13
13
14
14
// #[cfg(windows)]
@@ -23,7 +23,7 @@ use crate::{Error, Pid, SpawnFlags};
23
23
#[ cfg_attr( docsrs, doc( cfg( all( feature = "v2_58" , not( windows) ) ) ) ) ]
24
24
#[ allow( clippy:: too_many_arguments) ]
25
25
#[ doc( alias = "g_spawn_async_with_fds" ) ]
26
- pub fn spawn_async_with_fds < P : AsRef < std:: path:: Path > , T : AsRawFd , U : AsRawFd , V : AsRawFd > (
26
+ pub fn spawn_async_with_fds < P : AsRef < std:: path:: Path > , T : AsFd , U : AsFd , V : AsFd > (
27
27
working_directory : P ,
28
28
argv : & [ & str ] ,
29
29
envp : & [ & str ] ,
@@ -57,9 +57,9 @@ pub fn spawn_async_with_fds<P: AsRef<std::path::Path>, T: AsRawFd, U: AsRawFd, V
57
57
child_setup,
58
58
Box_ :: into_raw ( super_callback0) as * mut _ ,
59
59
child_pid. as_mut_ptr ( ) ,
60
- stdin_fd. as_raw_fd ( ) ,
61
- stdout_fd. as_raw_fd ( ) ,
62
- stderr_fd. as_raw_fd ( ) ,
60
+ stdin_fd. as_fd ( ) . as_raw_fd ( ) ,
61
+ stdout_fd. as_fd ( ) . as_raw_fd ( ) ,
62
+ stderr_fd. as_fd ( ) . as_raw_fd ( ) ,
63
63
& mut error,
64
64
) ;
65
65
let child_pid = from_glib ( child_pid. assume_init ( ) ) ;
0 commit comments