We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2fb788 commit 72a5201Copy full SHA for 72a5201
src/main.rs
@@ -71,7 +71,7 @@ pub fn main() {
71
// if we run "cargo clippy" (as cargo subcommand), we have to strip "cargo clippy" (first 2 args)
72
// but if we are run via "..../target/debug/cargo-clippy", only ommit the first arg, the second one
73
// might be a normal cmdline arg already (which we don't want to ommit)
74
- let args = if let Some(first_arg) = env::args().next() && first_arg.ends_with("cargo-clippy") {
+ let args = if let Some(first_arg) = env::args().next() && (first_arg.ends_with("cargo-clippy") || first_arg.ends_with("cargo-clippy.exe")) {
75
env::args().skip(1)
76
} else {
77
env::args().skip(2)
0 commit comments