We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ece96f commit c8eb640Copy full SHA for c8eb640
1 file changed
src/comments.rs
@@ -226,10 +226,10 @@ impl Comments {
226
///
227
/// # Parameters
228
/// - `src` which is the `SQL` file content as a [`str`]
229
- fn scan_comments(src: &str) -> Self {
+ fn scan_comments(src: &str) -> CommentResult<Self> {
230
let mut comments = Vec::new();
231
232
- Self { comments }
+ Ok(Self { comments })
233
}
234
235
/// Parse single line comments
0 commit comments