remove redundant call to Error::last_os_error

This commit is contained in:
HTGAzureX1212. 2024-01-26 20:27:20 +08:00
parent 3269513eb0
commit 8f89e57e9f
No known key found for this signature in database
GPG Key ID: 89A2F7143673C5B9

View File

@ -1096,7 +1096,7 @@ pub fn readdir(p: &Path) -> io::Result<ReadDir> {
first: Some(wfd),
})
} else {
Err(Error::last_os_error())
Err(last_error)
}
}
}