Skip to content

Commit 9e381ec

Browse files
authored
Rollup merge of #126194 - ChrisDenton:winerror, r=Mark-Simulacrum
Migrate more things to `WinError` In `library/std/src/sys/pal/windows`, we prefer to use the `WinError` type in place of using either `io::Result` or `unsafe { GetLastError }`. The latter is unsafe and weakly typed whereas the former is larger and requires unwrapping because it returns an `Option`. I also fixed up a couple of places where we were unnecessarily defining error constants that are already defined.
2 parents d9cd07d + bb0f5fb commit 9e381ec

File tree

0 file changed

+0
-0
lines changed

    0 file changed

    +0
    -0
    lines changed

    0 commit comments

    Comments
     (0)