3
3
#[ cfg( any( all( feature = "v2_58" , unix) , all( unix, feature = "dox" ) ) ) ]
4
4
use std:: boxed:: Box as Box_ ;
5
5
#[ cfg( any( all( feature = "v2_58" , unix) , all( unix, feature = "dox" ) ) ) ]
6
- use std:: os:: unix:: io:: AsRawFd ;
6
+ use std:: os:: unix:: io:: { AsFd , AsRawFd } ;
7
7
#[ cfg( any( all( feature = "v2_58" , unix) , all( unix, feature = "dox" ) ) ) ]
8
8
use std:: ptr;
9
9
@@ -48,12 +48,7 @@ pub trait DesktopAppInfoExtManual {
48
48
#[ cfg( any( all( feature = "v2_58" , unix) , all( unix, feature = "dox" ) ) ) ]
49
49
#[ cfg_attr( feature = "dox" , doc( cfg( all( feature = "v2_58" , unix) ) ) ) ]
50
50
#[ doc( alias = "g_desktop_app_info_launch_uris_as_manager_with_fds" ) ]
51
- fn launch_uris_as_manager_with_fds <
52
- P : IsA < AppLaunchContext > ,
53
- T : AsRawFd ,
54
- U : AsRawFd ,
55
- V : AsRawFd ,
56
- > (
51
+ fn launch_uris_as_manager_with_fds < P : IsA < AppLaunchContext > , T : AsFd , U : AsFd , V : AsFd > (
57
52
& self ,
58
53
uris : & [ & str ] ,
59
54
launch_context : Option < & P > ,
@@ -69,12 +64,7 @@ pub trait DesktopAppInfoExtManual {
69
64
impl < O : IsA < DesktopAppInfo > > DesktopAppInfoExtManual for O {
70
65
#[ cfg( any( all( feature = "v2_58" , unix) , all( unix, feature = "dox" ) ) ) ]
71
66
#[ cfg_attr( feature = "dox" , doc( cfg( all( feature = "v2_58" , unix) ) ) ) ]
72
- fn launch_uris_as_manager_with_fds <
73
- P : IsA < AppLaunchContext > ,
74
- T : AsRawFd ,
75
- U : AsRawFd ,
76
- V : AsRawFd ,
77
- > (
67
+ fn launch_uris_as_manager_with_fds < P : IsA < AppLaunchContext > , T : AsFd , U : AsFd , V : AsFd > (
78
68
& self ,
79
69
uris : & [ & str ] ,
80
70
launch_context : Option < & P > ,
@@ -135,9 +125,9 @@ impl<O: IsA<DesktopAppInfo>> DesktopAppInfoExtManual for O {
135
125
Box_ :: into_raw ( super_callback0) as * mut _ ,
136
126
pid_callback,
137
127
super_callback1 as * const _ as usize as * mut _ ,
138
- stdin_fd. as_raw_fd ( ) ,
139
- stdout_fd. as_raw_fd ( ) ,
140
- stderr_fd. as_raw_fd ( ) ,
128
+ stdin_fd. as_fd ( ) . as_raw_fd ( ) ,
129
+ stdout_fd. as_fd ( ) . as_raw_fd ( ) ,
130
+ stderr_fd. as_fd ( ) . as_raw_fd ( ) ,
141
131
& mut error,
142
132
) ;
143
133
if error. is_null ( ) {
0 commit comments