Skip to content

Commit e96ea3d

Browse files
fixed Windows impl
1 parent e33695d commit e96ea3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ impl Buf {
140140

141141
#[inline]
142142
pub fn leak<'a>(self) -> &'a mut Slice {
143-
Slice::from_inner_mut(self.inner.leak())
143+
unsafe { mem::transmute(self.inner.leak()) }
144144
}
145145

146146
#[inline]

0 commit comments

Comments
 (0)