about summary refs log tree commit diff
path: root/src/libstd/string.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/string.rs')
-rw-r--r--src/libstd/string.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/string.rs b/src/libstd/string.rs
index 8897750df65..dce96cb2e8f 100644
--- a/src/libstd/string.rs
+++ b/src/libstd/string.rs
@@ -328,7 +328,7 @@ impl StrAllocating for String {
     }
 
     #[inline]
-    fn into_strbuf(self) -> String {
+    fn into_string(self) -> String {
         self
     }
 }
@@ -362,7 +362,7 @@ impl<'a, S: Str> Equiv<S> for String {
 impl FromStr for String {
     #[inline]
     fn from_str(s: &str) -> Option<String> {
-        Some(s.to_strbuf())
+        Some(s.to_string())
     }
 }