remove redundant call to Error::last_os_error
This commit is contained in:
parent
3269513eb0
commit
8f89e57e9f
@ -1096,7 +1096,7 @@ pub fn readdir(p: &Path) -> io::Result<ReadDir> {
|
||||
first: Some(wfd),
|
||||
})
|
||||
} else {
|
||||
Err(Error::last_os_error())
|
||||
Err(last_error)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user