File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11fn  main ( )  { 
22    // protobuf_codegen::Codegen::new() 
33    //     .out_dir("src/proto") 
4-     //     .inputs(& [ 
4+     //     .inputs([ 
55    //         // "proto/names.proto", 
66    //         "proto/signed.proto", 
77    //         "proto/package.proto", 
Original file line number Diff line number Diff line change @@ -191,15 +191,15 @@ impl pubgrub::version::Version for Version {
191191            match  last_component { 
192192                Identifier :: Numeric ( pre)  => * pre += 1 , 
193193                Identifier :: AlphaNumeric ( pre)  => { 
194-                     let  mut  segments = split_alphanumeric ( & pre) ; 
194+                     let  mut  segments = split_alphanumeric ( pre) ; 
195195                    let  last_segment = segments. last_mut ( ) . unwrap ( ) ; 
196196
197197                    match  last_segment { 
198198                        AlphaOrNumeric :: Numeric ( n)  => * n += 1 , 
199199                        AlphaOrNumeric :: Alpha ( alpha)  => { 
200200                            // We should potentially be smarter about this (for instance, pick the next letter in the 
201201                            // alphabetic sequence), however, this seems like it could be quite a bit more complex. 
202-                             alpha. push_str ( "1" ) 
202+                             alpha. push ( '1' ) 
203203                        } 
204204                    } 
205205
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments