Skip to content

Commit ce3ac19

Browse files
author
Pi-Cla
committed
Clippy lints
1 parent 9eeaf71 commit ce3ac19

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
fn 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",

src/version.rs

+2-2
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)