We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0b42dea + caed83d commit 0aa41beCopy full SHA for 0aa41be
src/bootstrap/clean.rs
@@ -75,10 +75,10 @@ fn rm_rf(path: &Path) {
75
do_op(path, "remove dir", |p| {
76
fs::remove_dir(p).or_else(|e| {
77
// Check for dir not empty on Windows
78
+ // FIXME: Once `ErrorKind::DirectoryNotEmpty` is stabilized,
79
+ // match on `e.kind()` instead.
80
#[cfg(windows)]
- if matches!(e.kind(), std::io::ErrorKind::Other)
- && e.raw_os_error() == Some(145)
81
- {
+ if e.raw_os_error() == Some(145) {
82
return Ok(());
83
}
84
0 commit comments