Skip to content

Commit c8eb640

Browse files
committed
Work on Comment parsing logic began + support for comment errors
1 parent 2ece96f commit c8eb640

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/comments.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,10 @@ impl Comments {
226226
///
227227
/// # Parameters
228228
/// - `src` which is the `SQL` file content as a [`str`]
229-
fn scan_comments(src: &str) -> Self {
229+
fn scan_comments(src: &str) -> CommentResult<Self> {
230230
let mut comments = Vec::new();
231231

232-
Self { comments }
232+
Ok(Self { comments })
233233
}
234234

235235
/// Parse single line comments

0 commit comments

Comments
 (0)