Replace literal SQL with Diesel abstractions
This commit is contained in:
@@ -51,7 +51,7 @@ fn make_post(slug: &str, published_at: i64) -> Post {
|
||||
}
|
||||
|
||||
fn setup() -> (Database, TempDir) {
|
||||
let mut db = Database::open_in_memory().unwrap();
|
||||
let db = Database::open_in_memory().unwrap();
|
||||
db.migrate().unwrap();
|
||||
insert_project(db.conn(), &make_project()).unwrap();
|
||||
(db, TempDir::new().unwrap())
|
||||
|
||||
Reference in New Issue
Block a user