This commit is contained in:
Ayaz Hafiz 2023-03-31 18:04:32 -05:00
parent 906f2349b8
commit 32a59b7e72
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
3 changed files with 7 additions and 5 deletions

View file

@ -154,7 +154,7 @@ fn parse_queries(src: &str) -> Vec<TypeQuery> {
for (i, line) in src.lines().enumerate() {
// If this is a query line, it should start with a comment somewhere before the query
// lines.
let comment_column = match line.find("#") {
let comment_column = match line.find('#') {
Some(i) => i as _,
None => {
consecutive_query_lines = 0;