remove redundant call to Error::last_os_error
This commit is contained in:
parent
3269513eb0
commit
8f89e57e9f
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue