aboutsummaryrefslogtreecommitdiff
path: root/crates/stdx/src/lib.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-08-12 12:51:53 +0100
committerGitHub <[email protected]>2020-08-12 12:51:53 +0100
commit4b3d99f98f393d1c05b1041d3178cae45ebcd3ff (patch)
treeded304d310badd7d1dc040efa2c8c17572019464 /crates/stdx/src/lib.rs
parentf6c0b1ce59c9fa5bcbf482b1b9d16a3bae6abf1c (diff)
parentfcd4b0176f1544b389c9b028c547a1dfc92f9a56 (diff)
Merge #5699
5699: Fix clippy warnings r=matklad a=popzxc Currently clippy spawns a bunch of warnings on the `rust-analyzer` project. Nothing critical, but easy to fix, so I guess it won't harm. Co-authored-by: Igor Aleksanov <[email protected]>
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}