Skip to content

Commit cd98bc6

Browse files
Cargo reformat, removed test _.sql file
1 parent 35168ac commit cd98bc6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/webserver/routing.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,10 @@ where
118118
if path_and_query.path().ends_with(FORWARD_SLASH) {
119119
path.push(INDEX);
120120
if let Ok(NotFound) = find_file_or_not_found(&path, SQL_EXTENSION, store).await {
121-
let target_sql = path.parent().unwrap_or_else(|| Path::new("/")).join("_.sql");
121+
let target_sql = path
122+
.parent()
123+
.unwrap_or_else(|| Path::new("/"))
124+
.join("_.sql");
122125
if store.contains(&target_sql).await? {
123126
Ok(Execute(target_sql))
124127
} else {

test/models/_.sql

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)