From 7dd32469e5f994cec98969b420e8846d5f4c6c34 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 25 Jan 2022 11:40:11 -0800 Subject: [PATCH] Fix a compilation error. --- library/std/src/os/windows/io/handle.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/std/src/os/windows/io/handle.rs b/library/std/src/os/windows/io/handle.rs index bd8cb8f20d179..be2ccbd98e9c2 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;