File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -582,7 +582,9 @@ pub trait SliceConcatExt<T: ?Sized> {
582582 /// ```
583583 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
584584 #[ rustc_deprecated( since = "1.3.0" , reason = "renamed to join" ) ]
585- fn connect ( & self , sep : & T ) -> Self :: Output ;
585+ fn connect ( & self , sep : & T ) -> Self :: Output {
586+ self . join ( sep)
587+ }
586588}
587589
588590#[ unstable( feature = "slice_concat_ext" ,
@@ -616,10 +618,6 @@ impl<T: Clone, V: Borrow<[T]>> SliceConcatExt<T> for [V] {
616618 }
617619 result
618620 }
619-
620- fn connect ( & self , sep : & T ) -> Vec < T > {
621- self . join ( sep)
622- }
623621}
624622
625623////////////////////////////////////////////////////////////////////////////////
Original file line number Diff line number Diff line change @@ -86,10 +86,6 @@ impl<S: Borrow<str>> SliceConcatExt<str> for [S] {
8686 String :: from_utf8_unchecked ( join_generic_copy ( self , sep. as_bytes ( ) ) )
8787 }
8888 }
89-
90- fn connect ( & self , sep : & str ) -> String {
91- self . join ( sep)
92- }
9389}
9490
9591macro_rules! spezialize_for_lengths {
You can’t perform that action at this time.
0 commit comments