std: Remove String::from_owned_str as it's redundant

[breaking-change]
This commit is contained in:
Richo Healey
2014-05-24 21:59:56 -07:00
parent 746d086f93
commit c7fe4ffe3d
4 changed files with 7 additions and 7 deletions

View File

@@ -910,10 +910,9 @@ impl OwnedStr for String {
}
#[inline]
fn append(self, rhs: &str) -> String {
let mut new_str = String::from_owned_str(self);
new_str.push_str(rhs);
new_str
fn append(mut self, rhs: &str) -> String {
self.push_str(rhs);
self
}
}