Skip to content

Commit 993e8ac

Browse files
committed
Drive-by cleanups to cargo-clippy. No functional change.
1 parent 86c513e commit 993e8ac

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/main.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,8 @@ where
6161
{
6262
let mut args = vec!["check".to_owned()];
6363

64-
let mut found_dashes = false;
6564
for arg in old_args.by_ref() {
66-
found_dashes |= arg == "--";
67-
if found_dashes {
65+
if arg == "--" {
6866
break;
6967
}
7068
args.push(arg);
@@ -82,11 +80,7 @@ where
8280
let target_dir = std::env::var_os("CLIPPY_DOGFOOD")
8381
.map(|_| {
8482
std::env::var_os("CARGO_MANIFEST_DIR").map_or_else(
85-
|| {
86-
let mut fallback = std::ffi::OsString::new();
87-
fallback.push("clippy_dogfood");
88-
fallback
89-
},
83+
|| std::ffi::OsString::from("clippy_dogfood"),
9084
|d| {
9185
std::path::PathBuf::from(d)
9286
.join("target")

0 commit comments

Comments
 (0)