mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 05:25:37 +03:00
Remove unnecessary clone in ascii.rs
This commit is contained in:
+1
-2
@@ -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())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user