Skip to content

Commit 2c90083

Browse files
author
Michael Wright
committed
Avoid rustfmt bug on Windows
1 parent 186b5b2 commit 2c90083

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

clippy_dev/src/fmt.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ pub fn run(check: bool, verbose: bool) {
4444
let entry = entry?;
4545
let path = entry.path();
4646

47-
if path.extension() != Some("rs".as_ref()) || entry.file_name() == "ice-3891.rs" {
47+
if path.extension() != Some("rs".as_ref())
48+
|| entry.file_name() == "ice-3891.rs"
49+
// Avoid rustfmt bug rust-lang/rustfmt#1873
50+
|| cfg!(windows) && entry.file_name() == "implicit_hasher.rs"
51+
{
4852
continue;
4953
}
5054

0 commit comments

Comments
 (0)