diff options
| author | Kevin Ballard <kevin@sb.org> | 2014-05-28 20:45:44 -0700 |
|---|---|---|
| committer | Kevin Ballard <kevin@sb.org> | 2014-05-28 21:31:19 -0700 |
| commit | eb98c9eeaa6d1054c4d27611a3cf2d26b0708705 (patch) | |
| tree | 03c8bb992bdd40223de8e03462e7900eaf8023fd /src/libstd/string.rs | |
| parent | 812785e01aef46b0c62bfc02080f8fcc13f01a4c (diff) | |
Replace StrAllocating.into_owned() with .into_string()
We already have into_string(), but it was implemented in terms of into_owned(). Flip it around and deprecate into_owned(). Remove a few spurious calls to .into_owned() that existed in libregex and librustdoc.
Diffstat (limited to 'src/libstd/string.rs')
| -rw-r--r-- | src/libstd/string.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/libstd/string.rs b/src/libstd/string.rs index dce96cb2e8f..0edbaf99210 100644 --- a/src/libstd/string.rs +++ b/src/libstd/string.rs @@ -323,11 +323,6 @@ impl Str for String { impl StrAllocating for String { #[inline] - fn into_owned(self) -> String { - self - } - - #[inline] fn into_string(self) -> String { self } |
