rollup merge of #18397 : aochagavia/ascii
This commit is contained in:
commit
f2fe55b013
1 changed files with 1 additions and 2 deletions
|
@ -331,8 +331,7 @@ impl IntoStr for Vec<Ascii> {
|
||||||
#[inline]
|
#[inline]
|
||||||
fn into_string(self) -> String {
|
fn into_string(self) -> String {
|
||||||
unsafe {
|
unsafe {
|
||||||
let s: &str = mem::transmute(self.as_slice());
|
string::raw::from_utf8(self.into_bytes())
|
||||||
String::from_str(s)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue