1
Fork 0

Remove unnecessary clone in ascii.rs

This commit is contained in:
Adolfo Ochagavía 2014-10-28 16:32:24 +01:00
parent 58dc0a05ab
commit 012cc6dd04

View file

@ -330,8 +330,7 @@ impl IntoStr for Vec<Ascii> {
#[inline]
fn into_string(self) -> String {
unsafe {
let s: &str = mem::transmute(self.as_slice());
String::from_str(s)
string::raw::from_utf8(self.into_bytes())
}
}
}