mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-18 17:40:29 +00:00
clippy::complexity simplifications related to Iterators
This commit is contained in:
parent
bd407a9882
commit
ae7e55c1dd
12 changed files with 64 additions and 80 deletions
|
@ -461,8 +461,7 @@ impl ast::MatchArmList {
|
|||
let end = if let Some(comma) = start
|
||||
.siblings_with_tokens(Direction::Next)
|
||||
.skip(1)
|
||||
.skip_while(|it| it.kind().is_trivia())
|
||||
.next()
|
||||
.find(|it| !it.kind().is_trivia())
|
||||
.filter(|it| it.kind() == T![,])
|
||||
{
|
||||
comma
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue