about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDan Gohman <dev@sunfishcode.online>2022-02-01 14:23:03 -0800
committerDan Gohman <dev@sunfishcode.online>2022-02-01 14:23:03 -0800
commit713bb19ca3a838356324a447ad46d88e5ff002a2 (patch)
tree34b2be1fb88148f20bd1c279672b6ed45ff35908
parentca42a1bece0494a86b80713c6d0f8dbc3db667fa (diff)
downloadrust-713bb19ca3a838356324a447ad46d88e5ff002a2.tar.gz
rust-713bb19ca3a838356324a447ad46d88e5ff002a2.zip
Add missing `pub` keywords.
-rw-r--r--library/std/src/os/windows/io/handle.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/os/windows/io/handle.rs b/library/std/src/os/windows/io/handle.rs
index b9951a4249f..117ba0b4ec6 100644
--- a/library/std/src/os/windows/io/handle.rs
+++ b/library/std/src/os/windows/io/handle.rs
@@ -232,7 +232,7 @@ impl HandleOrNull {
     ///
     /// [here]: https://devblogs.microsoft.com/oldnewthing/20040302-00/?p=40443
     #[inline]
-    unsafe fn from_raw_handle(handle: RawHandle) -> Self {
+    pub unsafe fn from_raw_handle(handle: RawHandle) -> Self {
         Self(OwnedHandle::from_raw_handle(handle))
     }
 }
@@ -254,7 +254,7 @@ impl HandleOrInvalid {
     ///
     /// [here]: https://devblogs.microsoft.com/oldnewthing/20040302-00/?p=40443
     #[inline]
-    unsafe fn from_raw_handle(handle: RawHandle) -> Self {
+    pub unsafe fn from_raw_handle(handle: RawHandle) -> Self {
         Self(OwnedHandle::from_raw_handle(handle))
     }
 }