Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit 09b0d7f

Browse files
committed
Fix clippy errors.
1 parent 5996010 commit 09b0d7f

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/bin/cargo_semver.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#![feature(rustc_private)]
22
#![feature(set_stdio)]
3+
#![allow(clippy::too_many_lines)]
34

45
extern crate curl;
56
extern crate getopts;
@@ -54,7 +55,7 @@ fn main() {
5455

5556
let matches = match cli::parse_args(&opts) {
5657
Ok(m) => m,
57-
Err(f) => cli::exit_with_error(&config, f.to_owned().into()),
58+
Err(f) => cli::exit_with_error(&config, f.into()),
5859
};
5960

6061
if matches.opt_present("h") {

src/bin/rust_semver_public.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,9 @@ fn main() {
107107
// `clippy_driver` directly
108108
// without having to pass --sysroot or anything
109109
let args: Vec<String> = if orig_args.iter().any(|s| s == "--sysroot") {
110-
orig_args.clone()
110+
orig_args
111111
} else {
112112
orig_args
113-
.clone()
114113
.into_iter()
115114
.chain(Some("--sysroot".to_owned()))
116115
.chain(Some(sys_root))

src/bin/rust_semverver.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,9 @@ fn main() {
136136
// `clippy_driver` directly
137137
// without having to pass --sysroot or anything
138138
let args: Vec<String> = if orig_args.iter().any(|s| s == "--sysroot") {
139-
orig_args.clone()
139+
orig_args
140140
} else {
141141
orig_args
142-
.clone()
143142
.into_iter()
144143
.chain(Some("--sysroot".to_owned()))
145144
.chain(Some(sys_root))

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#![feature(rustc_private)]
22
#![allow(clippy::similar_names)]
33
#![allow(clippy::single_match_else)]
4+
#![allow(clippy::too_many_lines)]
45
#![deny(warnings)]
56
extern crate rustc;
67
extern crate syntax;

0 commit comments

Comments
 (0)