diff options
author | Igor Aleksanov <[email protected]> | 2020-08-10 13:05:01 +0100 |
---|---|---|
committer | Igor Aleksanov <[email protected]> | 2020-08-10 13:05:01 +0100 |
commit | 6344a7f362b19eaf71547766135ece160aa3389e (patch) | |
tree | 53dc390d807291f62c1f249f571b36b760e096f5 /crates/stdx/src | |
parent | f3336509e52187a7a70a8043557a7317872e3a2f (diff) |
Fix clippy warnings
Diffstat (limited to 'crates/stdx/src')
-rw-r--r-- | crates/stdx/src/lib.rs | 4 |
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 | ||
11 | pub trait SepBy: Sized { | 11 | pub 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 | ||
16 | impl<I> SepBy for I | 16 | impl<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 | } |