about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--library/std/src/os/windows/io/handle.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/os/windows/io/handle.rs b/library/std/src/os/windows/io/handle.rs
index bd8cb8f20d1..be2ccbd98e9 100644
--- a/library/std/src/os/windows/io/handle.rs
+++ b/library/std/src/os/windows/io/handle.rs
@@ -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;