Skip to content

Commit b9b12d4

Browse files
committed
account for windows .exe
1 parent 83fa8f8 commit b9b12d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub fn main() {
4747
// if we run "cargo clippy" (as cargo subcommand), we have to strip "cargo clippy" (first 2 args)
4848
// but if we are run via "..../target/debug/cargo-clippy", only ommit the first arg, the second one
4949
// might be a normal cmdline arg already (which we don't want to ommit)
50-
let args = if let Some(first_arg) = env::args().next() && first_arg.ends_with("cargo-clippy") {
50+
let args = if let Some(first_arg) = env::args().next() && (first_arg.ends_with("cargo-clippy") || first_arg.ends_with("cargo-clippy.exe")) {
5151
env::args().skip(1)
5252
} else {
5353
env::args().skip(2)

0 commit comments

Comments
 (0)