Skip to content

Commit 0446b09

Browse files
committed
clippy SQL tests
1 parent b48826a commit 0446b09

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/sql_test_files/mod.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,12 @@ async fn run_sql_test(
9191
} else if db_url.starts_with("sqlite") {
9292
"sqlite"
9393
} else {
94-
panic!("Unknown database type in DATABASE_URL: {}", db_url);
94+
panic!("Unknown database type in DATABASE_URL: {db_url}");
9595
};
9696

97-
if stem.contains(&format!("_no{}", db_type)) {
97+
if stem.contains(&format!("_no{db_type}")) {
9898
return Ok(TestResult::Skipped(format!(
99-
"Test skipped for database type: {}",
100-
db_type
99+
"Test skipped for database type: {db_type}"
101100
)));
102101
}
103102

@@ -122,7 +121,6 @@ fn assert_test_result(result: anyhow::Result<TestResult>, test_file: &std::path:
122121
match result {
123122
Ok(TestResult::Skipped(reason)) => {
124123
println!("⏭️ Skipped {}: {}", test_file.display(), reason);
125-
return;
126124
}
127125
Ok(TestResult::Success(body)) => {
128126
assert_html_response(&body, test_file);

0 commit comments

Comments
 (0)