Remove unnecessary clone in ascii.rs
This commit is contained in:
parent
58dc0a05ab
commit
012cc6dd04
1 changed files with 1 additions and 2 deletions
|
@ -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())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue