Remove the match on ErrorKind::Other
It's a) superfluous and b) doesn't work any more.
This commit is contained in:
parent
4459e720be
commit
913996b8ee
1 changed files with 1 additions and 3 deletions
|
@ -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(());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue