mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-03 18:29:23 +00:00
Fix clippy warnings
This commit is contained in:
parent
f3336509e5
commit
6344a7f362
11 changed files with 38 additions and 34 deletions
|
@ -10,7 +10,7 @@ pub fn is_ci() -> bool {
|
|||
|
||||
pub trait SepBy: Sized {
|
||||
/// Returns an `impl fmt::Display`, which joins elements via a separator.
|
||||
fn sep_by<'a>(self, sep: &'a str) -> SepByBuilder<'a, Self>;
|
||||
fn sep_by(self, sep: &str) -> SepByBuilder<'_, Self>;
|
||||
}
|
||||
|
||||
impl<I> SepBy for I
|
||||
|
@ -18,7 +18,7 @@ where
|
|||
I: Iterator,
|
||||
I::Item: fmt::Display,
|
||||
{
|
||||
fn sep_by<'a>(self, sep: &'a str) -> SepByBuilder<'a, Self> {
|
||||
fn sep_by(self, sep: &str) -> SepByBuilder<'_, Self> {
|
||||
SepByBuilder::new(sep, self)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue