Skip to content

Commit acfc161

Browse files
committed
Auto merge of rust-lang#8332 - Jarcho:clear_test_results, r=camsteffen
Don't bless outdated files on windows changelog: None
2 parents 4992548 + 7ed29c0 commit acfc161

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

clippy_dev/src/bless.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,14 @@ use walkdir::WalkDir;
99

1010
use crate::clippy_project_root;
1111

12+
#[cfg(not(windows))]
13+
static CARGO_CLIPPY_EXE: &str = "cargo-clippy";
14+
#[cfg(windows)]
15+
static CARGO_CLIPPY_EXE: &str = "cargo-clippy.exe";
16+
1217
static CLIPPY_BUILD_TIME: SyncLazy<Option<std::time::SystemTime>> = SyncLazy::new(|| {
1318
let mut path = std::env::current_exe().unwrap();
14-
path.set_file_name("cargo-clippy");
19+
path.set_file_name(CARGO_CLIPPY_EXE);
1520
fs::metadata(path).ok()?.modified().ok()
1621
});
1722

0 commit comments

Comments
 (0)