We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ErrorKind::Other
1 parent 4459e72 commit 913996bCopy full SHA for 913996b
src/bootstrap/clean.rs
@@ -76,9 +76,7 @@ fn rm_rf(path: &Path) {
76
fs::remove_dir(p).or_else(|e| {
77
// Check for dir not empty on Windows
78
#[cfg(windows)]
79
- if matches!(e.kind(), std::io::ErrorKind::Other)
80
- && e.raw_os_error() == Some(145)
81
- {
+ if e.raw_os_error() == Some(145) {
82
return Ok(());
83
}
84
0 commit comments