Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
fn main() {
// protobuf_codegen::Codegen::new()
// .out_dir("src/proto")
// .inputs(&[
// .inputs([
// // "proto/names.proto",
// "proto/signed.proto",
// "proto/package.proto",
Expand Down
4 changes: 2 additions & 2 deletions src/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,15 +191,15 @@ impl pubgrub::version::Version for Version {
match last_component {
Identifier::Numeric(pre) => *pre += 1,
Identifier::AlphaNumeric(pre) => {
let mut segments = split_alphanumeric(&pre);
let mut segments = split_alphanumeric(pre);
let last_segment = segments.last_mut().unwrap();

match last_segment {
AlphaOrNumeric::Numeric(n) => *n += 1,
AlphaOrNumeric::Alpha(alpha) => {
// We should potentially be smarter about this (for instance, pick the next letter in the
// alphabetic sequence), however, this seems like it could be quite a bit more complex.
alpha.push_str("1")
alpha.push('1')
}
}

Expand Down