Cleanup based on new version of Diesel
This commit is contained in:
parent
88eda46d95
commit
bb334df128
2 changed files with 1 additions and 2 deletions
2
build.rs
2
build.rs
|
@ -17,7 +17,7 @@ fn main() {
|
||||||
|
|
||||||
let _ignore_failure = std::fs::remove_file(db_path);
|
let _ignore_failure = std::fs::remove_file(db_path);
|
||||||
|
|
||||||
let connection = diesel::sqlite::SqliteConnection::establish(db_path)
|
let connection = SqliteConnection::establish(db_path)
|
||||||
.expect(&format!("Error esablishing a database connection to {}", db_path));
|
.expect(&format!("Error esablishing a database connection to {}", db_path));
|
||||||
|
|
||||||
// Integer is a dummy placeholder. Compiling fails when passing ().
|
// Integer is a dummy placeholder. Compiling fails when passing ().
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
use diesel::sqlite::SqliteConnection;
|
|
||||||
use diesel::prelude::*;
|
use diesel::prelude::*;
|
||||||
use diesel::expression::sql_literal::sql;
|
use diesel::expression::sql_literal::sql;
|
||||||
use diesel::types::*;
|
use diesel::types::*;
|
||||||
|
|
Loading…
Reference in a new issue