about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/sys/windows/os_str.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/library/std/src/sys/windows/os_str.rs b/library/std/src/sys/windows/os_str.rs
index 78e92a3331a..7661bc8eb0b 100644
--- a/library/std/src/sys/windows/os_str.rs
+++ b/library/std/src/sys/windows/os_str.rs
@@ -44,7 +44,8 @@ impl fmt::Display for Buf {
     }
 }
 
-pub struct Slice {
+#[repr(transparent)]
+pub(crate) struct Slice {
     pub inner: Wtf8,
 }