Skip to content

Commit 0a80bb4

Browse files
author
gimbles
committed
[feat] Make sys::windows::os_str::Slice repr(transparent)
1 parent bb1a03c commit 0a80bb4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/std/src/sys/windows/os_str.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ impl fmt::Display for Buf {
4444
}
4545
}
4646

47-
pub struct Slice {
47+
#[repr(transparent)]
48+
pub(crate) struct Slice {
4849
pub inner: Wtf8,
4950
}
5051

0 commit comments

Comments
 (0)