Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit db5b365

Browse files
committedMay 9, 2022
Auto merge of #96802 - gimbles:windows_slice, r=thomcc
[feat] Make sys::windows::os_str::Slice repr(transparent) Fixes #96577
2 parents a571179 + 3b5fe26 commit db5b365

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ impl fmt::Display for Buf {
4444
}
4545
}
4646

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

0 commit comments

Comments
 (0)
Please sign in to comment.