File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
fn main ( ) {
2
2
// protobuf_codegen::Codegen::new()
3
3
// .out_dir("src/proto")
4
- // .inputs(& [
4
+ // .inputs([
5
5
// // "proto/names.proto",
6
6
// "proto/signed.proto",
7
7
// "proto/package.proto",
Original file line number Diff line number Diff line change @@ -191,15 +191,15 @@ impl pubgrub::version::Version for Version {
191
191
match last_component {
192
192
Identifier :: Numeric ( pre) => * pre += 1 ,
193
193
Identifier :: AlphaNumeric ( pre) => {
194
- let mut segments = split_alphanumeric ( & pre) ;
194
+ let mut segments = split_alphanumeric ( pre) ;
195
195
let last_segment = segments. last_mut ( ) . unwrap ( ) ;
196
196
197
197
match last_segment {
198
198
AlphaOrNumeric :: Numeric ( n) => * n += 1 ,
199
199
AlphaOrNumeric :: Alpha ( alpha) => {
200
200
// We should potentially be smarter about this (for instance, pick the next letter in the
201
201
// alphabetic sequence), however, this seems like it could be quite a bit more complex.
202
- alpha. push_str ( "1" )
202
+ alpha. push ( '1' )
203
203
}
204
204
}
205
205
You can’t perform that action at this time.
0 commit comments