diff --git a/build.rs b/build.rs index 6e6507a..f6977a5 100644 --- a/build.rs +++ b/build.rs @@ -17,7 +17,7 @@ fn main() { 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)); // Integer is a dummy placeholder. Compiling fails when passing (). diff --git a/src/db.rs b/src/db.rs index 11ff7e5..c7e697a 100644 --- a/src/db.rs +++ b/src/db.rs @@ -1,4 +1,3 @@ -use diesel::sqlite::SqliteConnection; use diesel::prelude::*; use diesel::expression::sql_literal::sql; use diesel::types::*;