We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86c513e commit 993e8acCopy full SHA for 993e8ac
src/main.rs
@@ -61,10 +61,8 @@ where
61
{
62
let mut args = vec!["check".to_owned()];
63
64
- let mut found_dashes = false;
65
for arg in old_args.by_ref() {
66
- found_dashes |= arg == "--";
67
- if found_dashes {
+ if arg == "--" {
68
break;
69
}
70
args.push(arg);
@@ -82,11 +80,7 @@ where
82
80
let target_dir = std::env::var_os("CLIPPY_DOGFOOD")
83
81
.map(|_| {
84
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
- },
+ || std::ffi::OsString::from("clippy_dogfood"),
90
|d| {
91
std::path::PathBuf::from(d)
92
.join("target")
0 commit comments