aboutsummaryrefslogtreecommitdiff
path: root/crates/stdx/src/lib.rs
diff options
context:
space:
mode:
authorIgor Aleksanov <[email protected]>2020-08-10 13:05:01 +0100
committerIgor Aleksanov <[email protected]>2020-08-10 13:05:01 +0100
commit6344a7f362b19eaf71547766135ece160aa3389e (patch)
tree53dc390d807291f62c1f249f571b36b760e096f5 /crates/stdx/src/lib.rs
parentf3336509e52187a7a70a8043557a7317872e3a2f (diff)
Fix clippy warnings
Diffstat (limited to 'crates/stdx/src/lib.rs')
-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}