aboutsummaryrefslogtreecommitdiff
path: root/crates/syntax/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/syntax/src')
-rw-r--r--crates/syntax/src/ast/edit.rs3
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