diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2019-07-08 17:50:27 +0200 |
|---|---|---|
| committer | Simon Sapin <simon.sapin@exyr.org> | 2019-07-09 11:45:46 +0200 |
| commit | 283f6762caebb723a17ce82e1fc120928697cfb9 (patch) | |
| tree | 4d42e3dfc7e1f677d9e229186d66050ccd3e1440 /src/liballoc/str.rs | |
| parent | 01d93bf59523c4e5c00cf8933c551adc73953cd1 (diff) | |
| download | rust-283f6762caebb723a17ce82e1fc120928697cfb9.tar.gz rust-283f6762caebb723a17ce82e1fc120928697cfb9.zip | |
Take separator by value in `[T]::join`
Diffstat (limited to 'src/liballoc/str.rs')
| -rw-r--r-- | src/liballoc/str.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/str.rs b/src/liballoc/str.rs index 726ac1907fa..f57cf96a641 100644 --- a/src/liballoc/str.rs +++ b/src/liballoc/str.rs @@ -83,7 +83,7 @@ impl<S: Borrow<str>> Concat<str> for [S] { } #[unstable(feature = "slice_concat_ext", issue = "27747")] -impl<S: Borrow<str>> Join<str> for [S] { +impl<S: Borrow<str>> Join<&'_ str> for [S] { type Output = String; fn join(slice: &Self, sep: &str) -> String { |
