diff --git a/crates/ruff_python_ast/src/source_code/indexer.rs b/crates/ruff_python_ast/src/source_code/indexer.rs index 6cfdf693ca..3d10678a50 100644 --- a/crates/ruff_python_ast/src/source_code/indexer.rs +++ b/crates/ruff_python_ast/src/source_code/indexer.rs @@ -49,10 +49,7 @@ impl Indexer { } // Newlines after a newline never form a continuation. - if !matches!( - prev_token, - Some(Tok::Newline | Tok::NonLogicalNewline) | None - ) { + if !matches!(prev_token, Some(Tok::Newline | Tok::NonLogicalNewline)) { continuation_lines.push(line_start); }