aboutsummaryrefslogtreecommitdiff
path: root/crates/stdx/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/stdx/src')
-rw-r--r--crates/stdx/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/stdx/src/lib.rs b/crates/stdx/src/lib.rs
index b65875c96..00bfcd29e 100644
--- a/crates/stdx/src/lib.rs
+++ b/crates/stdx/src/lib.rs
@@ -10,7 +10,7 @@ pub fn is_ci() -> bool {
10 10
11pub trait SepBy: Sized { 11pub trait SepBy: Sized {
12 /// Returns an `impl fmt::Display`, which joins elements via a separator. 12 /// Returns an `impl fmt::Display`, which joins elements via a separator.
13 fn sep_by<'a>(self, sep: &'a str) -> SepByBuilder<'a, Self>; 13 fn sep_by(self, sep: &str) -> SepByBuilder<'_, Self>;
14} 14}
15 15
16impl<I> SepBy for I 16impl<I> SepBy for I
@@ -18,7 +18,7 @@ where
18 I: Iterator, 18 I: Iterator,
19 I::Item: fmt::Display, 19 I::Item: fmt::Display,
20{ 20{
21 fn sep_by<'a>(self, sep: &'a str) -> SepByBuilder<'a, Self> { 21 fn sep_by(self, sep: &str) -> SepByBuilder<'_, Self> {
22 SepByBuilder::new(sep, self) 22 SepByBuilder::new(sep, self)
23 } 23 }
24} 24}