File tree 1 file changed +0
-29
lines changed
1 file changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -1552,18 +1552,6 @@ impl fmt::Debug for File {
1552
1552
None
1553
1553
}
1554
1554
1555
- #[ cfg( any(
1556
- target_os = "linux" ,
1557
- target_os = "freebsd" ,
1558
- target_os = "hurd" ,
1559
- target_os = "netbsd" ,
1560
- target_os = "openbsd" ,
1561
- target_os = "vxworks" ,
1562
- target_os = "solaris" ,
1563
- target_os = "illumos" ,
1564
- target_os = "haiku" ,
1565
- target_vendor = "apple" ,
1566
- ) ) ]
1567
1555
fn get_mode ( fd : c_int ) -> Option < ( bool , bool ) > {
1568
1556
let mode = unsafe { libc:: fcntl ( fd, libc:: F_GETFL ) } ;
1569
1557
if mode == -1 {
@@ -1577,23 +1565,6 @@ impl fmt::Debug for File {
1577
1565
}
1578
1566
}
1579
1567
1580
- #[ cfg( not( any(
1581
- target_os = "linux" ,
1582
- target_os = "freebsd" ,
1583
- target_os = "hurd" ,
1584
- target_os = "netbsd" ,
1585
- target_os = "openbsd" ,
1586
- target_os = "vxworks" ,
1587
- target_os = "solaris" ,
1588
- target_os = "illumos" ,
1589
- target_os = "haiku" ,
1590
- target_vendor = "apple" ,
1591
- ) ) ) ]
1592
- fn get_mode ( _fd : c_int ) -> Option < ( bool , bool ) > {
1593
- // FIXME(#24570): implement this for other Unix platforms
1594
- None
1595
- }
1596
-
1597
1568
let fd = self . as_raw_fd ( ) ;
1598
1569
let mut b = f. debug_struct ( "File" ) ;
1599
1570
b. field ( "fd" , & fd) ;
You can’t perform that action at this time.
0 commit comments