We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eadae1c commit 5ad2b11Copy full SHA for 5ad2b11
std/src/sys/fs/windows.rs
@@ -132,6 +132,7 @@ impl Iterator for ReadDir {
132
let mut wfd = mem::zeroed();
133
loop {
134
if c::FindNextFileW(handle.0, &mut wfd) == 0 {
135
+ self.handle = None;
136
match api::get_last_error() {
137
WinError::NO_MORE_FILES => return None,
138
WinError { code } => {
0 commit comments