File tree Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -33,10 +33,7 @@ pub struct UnitFile {
3333} 
3434
3535impl  From < ( String ,  String ) >  for  UnitFile  { 
36-     fn  from ( value :  ( String ,  String ) )  -> Self  { 
37-         Self  { 
38-             file_name :  value. 0 , 
39-             status :  value. 1 , 
40-         } 
36+     fn  from ( ( file_name,  status) :  ( String ,  String ) )  -> Self  { 
37+         Self  {  file_name,  status } 
4138    } 
4239} 
Original file line number Diff line number Diff line change @@ -182,8 +182,8 @@ impl<'de> de::Visitor<'de> for Visitor {
182182                Field :: Mode  => { 
183183                    check_duplicate ( & mode,  Field :: Mode ) ?; 
184184                    // serde(with = "mode") 
185-                     let  value :   SerdeMode  = map. next_value ( ) ?; 
186-                     mode = Some ( value. 0 ) ; 
185+                     let  SerdeMode ( value )  = map. next_value ( ) ?; 
186+                     mode = Some ( value) ; 
187187                } 
188188                // tmpcopyup, notmpcopyup values (de)serialize as unit (i.e. no value) 
189189                Field :: TmpCopyUp  => tmpcopyup = true , 
Original file line number Diff line number Diff line change 8181    S :  Serializer , 
8282{ 
8383    let  iter = value. into_iter ( ) ; 
84-     let  len = iter. size_hint ( ) . 1 ; 
84+     let  ( _ ,   len)  = iter. size_hint ( ) ; 
8585
8686    let  mut  state = serializer. serialize_seq ( len) ?; 
8787
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments