diff --git a/build.rs b/build.rs index 73d24b4..5a9f3ee 100644 --- a/build.rs +++ b/build.rs @@ -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", diff --git a/src/version.rs b/src/version.rs index 93e5762..a479a74 100644 --- a/src/version.rs +++ b/src/version.rs @@ -191,7 +191,7 @@ 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 { @@ -199,7 +199,7 @@ impl pubgrub::version::Version for Version { 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') } }