We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 466e1e2 commit 1ebe9b5Copy full SHA for 1ebe9b5
crates/pgt_statement_splitter/src/parser.rs
@@ -28,7 +28,6 @@ pub struct Parser {
28
current_pos: usize,
29
}
30
31
-///
32
#[derive(Debug)]
33
pub struct ParserResult {
34
/// The ranges of the parsed statements
@@ -89,7 +88,7 @@ impl Parser {
89
88
90
pub fn close_stmt(&mut self) {
91
assert!(
92
- matches!(self.current_stmt_start, Some(_)),
+ self.current_stmt_start.is_some(),
93
"Must start statement before closing it."
94
);
95
0 commit comments