Skip to content

Commit 15068d2

Browse files
Shefeek JinnahShefeek Jinnah
authored andcommitted
Fixing some more clippy issues
1 parent f292bc5 commit 15068d2

1 file changed

Lines changed: 21 additions & 21 deletions

File tree

tests/sqllogictest_runner.rs

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -41,32 +41,32 @@ fn preprocess_test_file(content: &str) -> String {
4141
}
4242

4343
// Skip ATTACH/DETACH statements (we handle connection in Rust)
44-
if trimmed == "statement ok" {
45-
if let Some(next_line) = lines.peek() {
46-
let next_upper = next_line.trim().to_uppercase();
47-
if next_upper.starts_with("ATTACH ") || next_upper.starts_with("DETACH ") {
48-
lines.next(); // Skip the ATTACH/DETACH statement
49-
continue;
50-
}
44+
if trimmed == "statement ok"
45+
&& let Some(next_line) = lines.peek()
46+
{
47+
let next_upper = next_line.trim().to_uppercase();
48+
if next_upper.starts_with("ATTACH ") || next_upper.starts_with("DETACH ") {
49+
lines.next(); // Skip the ATTACH/DETACH statement
50+
continue;
51+
}
5152

52-
// Skip EXPLAIN statements (not testable - no consistent output format)
53-
if next_upper.starts_with("EXPLAIN ") {
54-
lines.next(); // Skip the EXPLAIN statement
55-
continue;
56-
}
53+
// Skip EXPLAIN statements (not testable - no consistent output format)
54+
if next_upper.starts_with("EXPLAIN ") {
55+
lines.next(); // Skip the EXPLAIN statement
56+
continue;
5757
}
5858
}
5959

6060
// Skip query blocks with EXPLAIN
61-
if trimmed.starts_with("query") {
62-
if let Some(next_line) = lines.peek() {
63-
let next_upper = next_line.trim().to_uppercase();
64-
if next_upper.starts_with("EXPLAIN ") {
65-
// Skip the query directive, SQL, separator, and results
66-
lines.next(); // Skip SQL line
67-
skip_query_results(&mut lines);
68-
continue;
69-
}
61+
if trimmed.starts_with("query")
62+
&& let Some(next_line) = lines.peek()
63+
{
64+
let next_upper = next_line.trim().to_uppercase();
65+
if next_upper.starts_with("EXPLAIN ") {
66+
// Skip the query directive, SQL, separator, and results
67+
lines.next(); // Skip SQL line
68+
skip_query_results(&mut lines);
69+
continue;
7070
}
7171
}
7272

0 commit comments

Comments
 (0)