diff options
| author | gimbles <yusharora@protonmail.com> | 2022-05-06 22:51:13 +0530 | 
|---|---|---|
| committer | gimbles <yusharora@protonmail.com> | 2022-05-06 22:51:13 +0530 | 
| commit | 0a80bb43e5075c9ded49374fc008db7f70965cfe (patch) | |
| tree | 596686e50e3b6c2e6dc8085726c1a8d1c03a5cf4 | |
| parent | bb1a03c4fcbe547168fab128fa39b08d1122a1c2 (diff) | |
| download | rust-0a80bb43e5075c9ded49374fc008db7f70965cfe.tar.gz rust-0a80bb43e5075c9ded49374fc008db7f70965cfe.zip | |
[feat] Make sys::windows::os_str::Slice repr(transparent)
| -rw-r--r-- | library/std/src/sys/windows/os_str.rs | 3 | 
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, } | 
