Skip to content

Commit

Permalink
Fix a compilation error.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Mar 4, 2022
1 parent ee02f01 commit 7dd3246
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/os/windows/io/handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ impl OwnedHandle {
// if we passed it a null handle, but we can treat null as a valid
// handle which doesn't do any I/O, and allow it to be duplicated.
if handle.is_null() {
return unsafe { Ok(Handle::from_raw_handle(handle)) };
return unsafe { Ok(Self::from_raw_handle(handle)) };
}

let mut ret = 0 as c::HANDLE;
Expand Down

0 comments on commit 7dd3246

Please sign in to comment.