diff --git a/kordophone-db/src/repository.rs b/kordophone-db/src/repository.rs index 8eb535f..d6f48ee 100644 --- a/kordophone-db/src/repository.rs +++ b/kordophone-db/src/repository.rs @@ -2,8 +2,6 @@ use anyhow::Result; use diesel::prelude::*; use diesel::query_dsl::BelongingToDsl; -use std::sync::Arc; - use crate::{ database::Database, models::{ diff --git a/kordophone-db/src/settings.rs b/kordophone-db/src/settings.rs index a234560..ae6175a 100644 --- a/kordophone-db/src/settings.rs +++ b/kordophone-db/src/settings.rs @@ -30,7 +30,7 @@ impl<'a> Settings<'a> { .values(SettingsRow { key: k, value: &bytes }) .on_conflict(key) .do_update() - .set((value.eq(&bytes))) + .set(value.eq(&bytes)) .execute(&mut self.db.connection)?; Ok(()) diff --git a/kpcli/src/db/mod.rs b/kpcli/src/db/mod.rs index c95ae76..73f5dc8 100644 --- a/kpcli/src/db/mod.rs +++ b/kpcli/src/db/mod.rs @@ -3,7 +3,7 @@ use clap::Subcommand; use kordophone::APIInterface; use std::{env, path::PathBuf}; -use kordophone_db::{database::Database, repository::Repository, settings}; +use kordophone_db::database::Database; use crate::{client, printers::{ConversationPrinter, MessagePrinter}}; #[derive(Subcommand)]