diff options
Diffstat (limited to 'src/parse/parser.rs')
| -rw-r--r-- | src/parse/parser.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/parse/parser.rs b/src/parse/parser.rs index d4192b50..5fba961a 100644 --- a/src/parse/parser.rs +++ b/src/parse/parser.rs @@ -381,10 +381,7 @@ impl<'s> Parser<'s> { /// Whether the active group ends at a newline. fn stop_at_newline(&self) -> bool { let active = self.groups.last().map(|group| group.kind); - matches!( - active, - Some(Group::Stmt) | Some(Group::Expr) | Some(Group::Imports) - ) + matches!(active, Some(Group::Stmt | Group::Expr | Group::Imports)) } /// Whether we are inside the given group. |
