File tree Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Expand file tree Collapse file tree 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 {
15521552            None 
15531553        } 
15541554
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-         ) ) ]  
15671555        fn  get_mode ( fd :  c_int )  -> Option < ( bool ,  bool ) >  { 
15681556            let  mode = unsafe  {  libc:: fcntl ( fd,  libc:: F_GETFL )  } ; 
15691557            if  mode == -1  { 
@@ -1577,23 +1565,6 @@ impl fmt::Debug for File {
15771565            } 
15781566        } 
15791567
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- 
15971568        let  fd = self . as_raw_fd ( ) ; 
15981569        let  mut  b = f. debug_struct ( "File" ) ; 
15991570        b. field ( "fd" ,  & fd) ; 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments