File tree 2 files changed +3
-9
lines changed
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> {
582
582
/// ```
583
583
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
584
584
#[ 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
+ }
586
588
}
587
589
588
590
#[ unstable( feature = "slice_concat_ext" ,
@@ -616,10 +618,6 @@ impl<T: Clone, V: Borrow<[T]>> SliceConcatExt<T> for [V] {
616
618
}
617
619
result
618
620
}
619
-
620
- fn connect ( & self , sep : & T ) -> Vec < T > {
621
- self . join ( sep)
622
- }
623
621
}
624
622
625
623
////////////////////////////////////////////////////////////////////////////////
Original file line number Diff line number Diff line change @@ -86,10 +86,6 @@ impl<S: Borrow<str>> SliceConcatExt<str> for [S] {
86
86
String :: from_utf8_unchecked ( join_generic_copy ( self , sep. as_bytes ( ) ) )
87
87
}
88
88
}
89
-
90
- fn connect ( & self , sep : & str ) -> String {
91
- self . join ( sep)
92
- }
93
89
}
94
90
95
91
macro_rules! spezialize_for_lengths {
You can’t perform that action at this time.
0 commit comments