diff options
author | Matthias Krüger <[email protected]> | 2021-03-21 12:13:34 +0000 |
---|---|---|
committer | Matthias Krüger <[email protected]> | 2021-03-21 12:13:34 +0000 |
commit | ae7e55c1dd801c60092205ec8890179e10a47814 (patch) | |
tree | 7e55e7a0c144610d55509b3e28bde0edf0953e39 /crates/syntax | |
parent | bd407a9882250cbbb0897faba08e7d5ef80a4862 (diff) |
clippy::complexity simplifications related to Iterators
Diffstat (limited to 'crates/syntax')
-rw-r--r-- | crates/syntax/src/ast/edit.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/syntax/src/ast/edit.rs b/crates/syntax/src/ast/edit.rs index 80be8b79c..365de4463 100644 --- a/crates/syntax/src/ast/edit.rs +++ b/crates/syntax/src/ast/edit.rs | |||
@@ -461,8 +461,7 @@ impl ast::MatchArmList { | |||
461 | let end = if let Some(comma) = start | 461 | let end = if let Some(comma) = start |
462 | .siblings_with_tokens(Direction::Next) | 462 | .siblings_with_tokens(Direction::Next) |
463 | .skip(1) | 463 | .skip(1) |
464 | .skip_while(|it| it.kind().is_trivia()) | 464 | .find(|it| !it.kind().is_trivia()) |
465 | .next() | ||
466 | .filter(|it| it.kind() == T![,]) | 465 | .filter(|it| it.kind() == T![,]) |
467 | { | 466 | { |
468 | comma | 467 | comma |