diff options
| author | Jane Lusby <jlusby@yaah.dev> | 2020-03-23 10:41:19 -0700 |
|---|---|---|
| committer | Jane Lusby <jlusby@yaah.dev> | 2020-03-27 12:48:08 -0700 |
| commit | 7c479fd8a7af670b8ff55f6d1d5c0d5178e6c196 (patch) | |
| tree | c3fa30b5f87bc7be514cfcda687ea0be2089d699 | |
| parent | 2ff568d746e4641b992c0b74bea046e43a637997 (diff) | |
| download | rust-7c479fd8a7af670b8ff55f6d1d5c0d5178e6c196.tar.gz rust-7c479fd8a7af670b8ff55f6d1d5c0d5178e6c196.zip | |
Start work on clippy-fix as subcommand
| -rw-r--r-- | src/main.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 93e6996be06..66c1aa4d97c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -59,6 +59,11 @@ where let mut args = vec!["check".to_owned()]; for arg in old_args.by_ref() { + if arg == "--fix" { + args[0] = "fix".to_owned(); + continue; + } + if arg == "--" { break; } @@ -96,7 +101,7 @@ where let exit_status = std::process::Command::new("cargo") .args(&args) - .env("RUSTC_WRAPPER", path) + .env("RUSTC_WORKSPACE_WRAPPER", path) .env("CLIPPY_ARGS", clippy_args) .envs(target_dir) .spawn() |
