File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -219,22 +219,25 @@ pub trait FromSocket {
219
219
}
220
220
}
221
221
222
- #[ cfg( not( windows) ) ]
222
+ #[ cfg( not( io_lifetimes_use_std) ) ]
223
+ #[ cfg( any( unix, target_os = "wasi" ) ) ]
223
224
impl < T : AsFd > AsFd for & T {
224
225
#[ inline]
225
226
fn as_fd ( & self ) -> BorrowedFd < ' _ > {
226
227
T :: as_fd ( self )
227
228
}
228
229
}
229
230
230
- #[ cfg( not( windows) ) ]
231
+ #[ cfg( not( io_lifetimes_use_std) ) ]
232
+ #[ cfg( any( unix, target_os = "wasi" ) ) ]
231
233
impl < T : AsFd > AsFd for & mut T {
232
234
#[ inline]
233
235
fn as_fd ( & self ) -> BorrowedFd < ' _ > {
234
236
T :: as_fd ( self )
235
237
}
236
238
}
237
239
240
+ #[ cfg( not( io_lifetimes_use_std) ) ]
238
241
#[ cfg( windows) ]
239
242
impl < T : AsHandle > AsHandle for & T {
240
243
#[ inline]
@@ -243,6 +246,7 @@ impl<T: AsHandle> AsHandle for &T {
243
246
}
244
247
}
245
248
249
+ #[ cfg( not( io_lifetimes_use_std) ) ]
246
250
#[ cfg( windows) ]
247
251
impl < T : AsHandle > AsHandle for & mut T {
248
252
#[ inline]
@@ -251,6 +255,7 @@ impl<T: AsHandle> AsHandle for &mut T {
251
255
}
252
256
}
253
257
258
+ #[ cfg( not( io_lifetimes_use_std) ) ]
254
259
#[ cfg( windows) ]
255
260
impl < T : AsSocket > AsSocket for & T {
256
261
#[ inline]
@@ -259,6 +264,7 @@ impl<T: AsSocket> AsSocket for &T {
259
264
}
260
265
}
261
266
267
+ #[ cfg( not( io_lifetimes_use_std) ) ]
262
268
#[ cfg( windows) ]
263
269
impl < T : AsSocket > AsSocket for & mut T {
264
270
#[ inline]
You can’t perform that action at this time.
0 commit comments