aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/remind/database.rs
diff options
context:
space:
mode:
authorJokler <jokler.contact@gmail.com>2019-12-07 21:44:22 +0100
committerJokler <jokler.contact@gmail.com>2019-12-07 21:44:22 +0100
commiteddb551c6fa92e0818c60d26146abff1cbaa4e9d (patch)
tree987e04db6dac133453ae45a6c791c456f5b3be74 /src/plugins/remind/database.rs
parentf372945457078451dd62775ae2ce16a2a71f4147 (diff)
downloadfrippy-eddb551c6fa92e0818c60d26146abff1cbaa4e9d.tar.gz
frippy-eddb551c6fa92e0818c60d26146abff1cbaa4e9d.zip
Remove unused diesel use statements
Diffstat (limited to 'src/plugins/remind/database.rs')
-rw-r--r--src/plugins/remind/database.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/remind/database.rs b/src/plugins/remind/database.rs
index 97d93e8..f3c1cb9 100644
--- a/src/plugins/remind/database.rs
+++ b/src/plugins/remind/database.rs
@@ -163,7 +163,7 @@ use self::schema::events;
#[cfg(feature = "mysql")]
impl Database for Arc<Pool<ConnectionManager<MysqlConnection>>> {
fn insert_event(&mut self, event: &NewEvent) -> Result<i64, RemindError> {
- use diesel::{self, dsl::sql, types::Bigint};
+ use diesel::{dsl::sql, types::Bigint};
let conn = &*self.get().context(ErrorKind::NoConnection)?;
diesel::insert_into(events::table)
@@ -180,7 +180,6 @@ impl Database for Arc<Pool<ConnectionManager<MysqlConnection>>> {
fn update_event_time(&mut self, id: i64, time: &NaiveDateTime) -> Result<(), RemindError> {
use self::events::columns;
- use diesel;
let conn = &*self.get().context(ErrorKind::NoConnection)?;
match diesel::update(events::table.filter(columns::id.eq(id)))
@@ -224,7 +223,6 @@ impl Database for Arc<Pool<ConnectionManager<MysqlConnection>>> {
fn delete_event(&mut self, id: i64) -> Result<(), RemindError> {
use self::events::columns;
- use diesel;
let conn = &*self.get().context(ErrorKind::NoConnection)?;
match diesel::delete(events::table.filter(columns::id.eq(id))).execute(conn) {