diff --git a/src/bootstrap/clean.rs b/src/bootstrap/clean.rs index 3216c1af26730..7b8ce12bb4f25 100644 --- a/src/bootstrap/clean.rs +++ b/src/bootstrap/clean.rs @@ -76,9 +76,7 @@ fn rm_rf(path: &Path) { fs::remove_dir(p).or_else(|e| { // Check for dir not empty on Windows #[cfg(windows)] - if matches!(e.kind(), std::io::ErrorKind::Other) - && e.raw_os_error() == Some(145) - { + if e.raw_os_error() == Some(145) { return Ok(()); }