diff options
Diffstat (limited to 'src/liballoc/string.rs')
| -rw-r--r-- | src/liballoc/string.rs | 6 |
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() } } |
