about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorClar Charr <clar@charr.xyz>2017-05-20 15:40:53 -0400
committerOliver Middleton <olliemail27@gmail.com>2017-06-21 01:18:18 +0100
commit5a97036b6900ee208f90c52ceadcce606d497e93 (patch)
tree760fc0fbd4c98630838b55ec97dfdc27572f9bb1 /src/liballoc
parent445077963c55297ef1e196a3525723090fe80b22 (diff)
downloadrust-5a97036b6900ee208f90c52ceadcce606d497e93.tar.gz
rust-5a97036b6900ee208f90c52ceadcce606d497e93.zip
Convert Intos to Froms.
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/string.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/liballoc/string.rs b/src/liballoc/string.rs
index 2cb81029f95..c1ef1c2f96c 100644
--- a/src/liballoc/string.rs
+++ b/src/liballoc/string.rs
@@ -2009,9 +2009,9 @@ impl From<Box<str>> for String {
 }
 
 #[stable(feature = "box_from_str", since = "1.18.0")]
-impl Into<Box<str>> for String {
-    fn into(self) -> Box<str> {
-        self.into_boxed_str()
+impl From<String> for Box<str> {
+    fn from(s: String) -> Box<str> {
+        s.into_boxed_str()
     }
 }