Skip to content

Commit 8f89e57

Browse files
committed
remove redundant call to Error::last_os_error
1 parent 3269513 commit 8f89e57

File tree

1 file changed

+1
-1
lines changed
  • library/std/src/sys/pal/windows

1 file changed

+1
-1
lines changed

library/std/src/sys/pal/windows/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@ pub fn readdir(p: &Path) -> io::Result<ReadDir> {
10961096
first: Some(wfd),
10971097
})
10981098
} else {
1099-
Err(Error::last_os_error())
1099+
Err(last_error)
11001100
}
11011101
}
11021102
}

0 commit comments

Comments
 (0)