mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 09:13:07 +03:00
remove redundant call to Error::last_os_error
This commit is contained in:
@@ -1096,7 +1096,7 @@ pub fn readdir(p: &Path) -> io::Result<ReadDir> {
|
||||
first: Some(wfd),
|
||||
})
|
||||
} else {
|
||||
Err(Error::last_os_error())
|
||||
Err(last_error)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user