diff options
| author | bors <bors@rust-lang.org> | 2022-01-22 04:49:41 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-01-22 04:49:41 +0000 |
| commit | acfc161fa660e518b95e95f96de2f7964c0f5d3e (patch) | |
| tree | 9824f3171720f6ed2c44f84ab4da0400e5b74061 | |
| parent | 4992548f281c54c85079cd07abdfc717b7c2bd01 (diff) | |
| parent | 7ed29c0051c5c46261644d8098793fd08efddb4c (diff) | |
| download | rust-acfc161fa660e518b95e95f96de2f7964c0f5d3e.tar.gz rust-acfc161fa660e518b95e95f96de2f7964c0f5d3e.zip | |
Auto merge of #8332 - Jarcho:clear_test_results, r=camsteffen
Don't bless outdated files on windows changelog: None
| -rw-r--r-- | clippy_dev/src/bless.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/clippy_dev/src/bless.rs b/clippy_dev/src/bless.rs index daf0fcc993b..dcc2502e4c5 100644 --- a/clippy_dev/src/bless.rs +++ b/clippy_dev/src/bless.rs @@ -9,9 +9,14 @@ use walkdir::WalkDir; use crate::clippy_project_root; +#[cfg(not(windows))] +static CARGO_CLIPPY_EXE: &str = "cargo-clippy"; +#[cfg(windows)] +static CARGO_CLIPPY_EXE: &str = "cargo-clippy.exe"; + static CLIPPY_BUILD_TIME: SyncLazy<Option<std::time::SystemTime>> = SyncLazy::new(|| { let mut path = std::env::current_exe().unwrap(); - path.set_file_name("cargo-clippy"); + path.set_file_name(CARGO_CLIPPY_EXE); fs::metadata(path).ok()?.modified().ok() }); |
