Replace literal SQL with Diesel abstractions
This commit is contained in:
@@ -43,7 +43,7 @@ fn make_test_project(id: &str, slug: &str) -> Project {
|
||||
}
|
||||
|
||||
fn setup() -> (Database, TempDir) {
|
||||
let mut db = Database::open_in_memory().unwrap();
|
||||
let db = Database::open_in_memory().unwrap();
|
||||
db.migrate().unwrap();
|
||||
ensure_fts_tables(db.conn()).unwrap();
|
||||
insert_project(db.conn(), &make_test_project("p1", "blog")).unwrap();
|
||||
|
||||
Reference in New Issue
Block a user