From bb334df1285c47d9f526d7c7e5ca5de8f30f33cb Mon Sep 17 00:00:00 2001 From: Magnus Hoff Date: Sun, 17 Sep 2017 12:19:48 +0200 Subject: [PATCH] Cleanup based on new version of Diesel --- build.rs | 2 +- src/db.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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::*;