about summary refs log tree commit diff
path: root/src/liballoc/str.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-06-22 01:42:30 +0200
committerGitHub <noreply@github.com>2019-06-22 01:42:30 +0200
commit3a8536edefdef91f5982e5ba3df200bc7d7d936a (patch)
treebf9b7ff52429553faa96e032cab2cb79bc9efa56 /src/liballoc/str.rs
parentf2a0ce9c37fc4b8deb1590d350d6c115ac78e0b5 (diff)
parent3dd114e1cb24ce56d136dfd0af00780f06a2975c (diff)
downloadrust-3a8536edefdef91f5982e5ba3df200bc7d7d936a.tar.gz
rust-3a8536edefdef91f5982e5ba3df200bc7d7d936a.zip
Rollup merge of #61146 - czipperz:SliceConcatExt-connect-default-to-join, r=sfackler
SliceConcatExt::connect defaults to calling join

It makes sense to default a deprecated method to the new one.  Precedence example is `Error::cause` defaults to calling `Error::source`.
Diffstat (limited to 'src/liballoc/str.rs')
-rw-r--r--src/liballoc/str.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/liballoc/str.rs b/src/liballoc/str.rs
index 0c7d2b837a3..40104554fe5 100644
--- a/src/liballoc/str.rs
+++ b/src/liballoc/str.rs
@@ -86,10 +86,6 @@ impl<S: Borrow<str>> SliceConcatExt<str> for [S] {
             String::from_utf8_unchecked( join_generic_copy(self, sep.as_bytes()) )
         }
     }
-
-    fn connect(&self, sep: &str) -> String {
-        self.join(sep)
-    }
 }
 
 macro_rules! spezialize_for_lengths {