Skip to content

Commit 1ebe9b5

Browse files
ok
1 parent 466e1e2 commit 1ebe9b5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crates/pgt_statement_splitter/src/parser.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ pub struct Parser {
2828
current_pos: usize,
2929
}
3030

31-
///
3231
#[derive(Debug)]
3332
pub struct ParserResult {
3433
/// The ranges of the parsed statements
@@ -89,7 +88,7 @@ impl Parser {
8988

9089
pub fn close_stmt(&mut self) {
9190
assert!(
92-
matches!(self.current_stmt_start, Some(_)),
91+
self.current_stmt_start.is_some(),
9392
"Must start statement before closing it."
9493
);
9594

0 commit comments

Comments
 (0)