Skip to content

Commit

Permalink
Remove the match on ErrorKind::Other
Browse files Browse the repository at this point in the history
It's a) superfluous and b) doesn't work any more.
  • Loading branch information
ChrisDenton committed Dec 8, 2021
1 parent 4459e72 commit 913996b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/bootstrap/clean.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(());
}

Expand Down

0 comments on commit 913996b

Please sign in to comment.