File tree Expand file tree Collapse file tree 1 file changed +0
-42
lines changed Expand file tree Collapse file tree 1 file changed +0
-42
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,6 @@ use bitflags::bitflags;
33use  std:: any:: Any ; 
44use  std:: sync:: { Arc ,  RwLock } ; 
55
6- #[ cfg( unix) ]  
7- use  cap_std:: io_lifetimes:: { AsFd ,  BorrowedFd } ; 
8- 
9- #[ cfg( windows) ]  
10- use  io_extras:: os:: windows:: { AsRawHandleOrSocket ,  RawHandleOrSocket } ; 
11- 
126#[ wiggle:: async_trait]  
137pub  trait  WasiFile :  Send  + Sync  { 
148    fn  as_any ( & self )  -> & dyn  Any ; 
@@ -324,39 +318,3 @@ pub enum Advice {
324318    DontNeed , 
325319    NoReuse , 
326320} 
327- 
328- #[ cfg( unix) ]  
329- pub  struct  BorrowedAsFd < ' a ,  T :  AsFd > ( & ' a  T ) ; 
330- 
331- #[ cfg( unix) ]  
332- impl < ' a ,  T :  AsFd >  BorrowedAsFd < ' a ,  T >  { 
333-     pub  fn  new ( t :  & ' a  T )  -> Self  { 
334-         BorrowedAsFd ( t) 
335-     } 
336- } 
337- 
338- #[ cfg( unix) ]  
339- impl < T :  AsFd >  AsFd  for  BorrowedAsFd < ' _ ,  T >  { 
340-     #[ inline]  
341-     fn  as_fd ( & self )  -> BorrowedFd  { 
342-         self . 0 . as_fd ( ) 
343-     } 
344- } 
345- 
346- #[ cfg( windows) ]  
347- pub  struct  BorrowedAsRawHandleOrSocket < ' a ,  T :  AsRawHandleOrSocket > ( & ' a  T ) ; 
348- 
349- #[ cfg( windows) ]  
350- impl < ' a ,  T :  AsRawHandleOrSocket >  BorrowedAsRawHandleOrSocket < ' a ,  T >  { 
351-     pub  fn  new ( t :  & ' a  T )  -> Self  { 
352-         BorrowedAsRawHandleOrSocket ( t) 
353-     } 
354- } 
355- 
356- #[ cfg( windows) ]  
357- impl < T :  AsRawHandleOrSocket >  AsRawHandleOrSocket  for  BorrowedAsRawHandleOrSocket < ' _ ,  T >  { 
358-     #[ inline]  
359-     fn  as_raw_handle_or_socket ( & self )  -> RawHandleOrSocket  { 
360-         self . 0 . as_raw_handle_or_socket ( ) 
361-     } 
362- } 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments