From 7925f545bb2aaf07a426c932684ead3a8f087472 Mon Sep 17 00:00:00 2001 From: despiegk Date: Sun, 20 Apr 2025 09:58:01 +0200 Subject: [PATCH] ... --- herodb/src/db/store.rs | 2 +- herodb/src/models/gov/company.rs | 4 ++-- herodb/src/models/gov/meeting.rs | 2 +- herodb/src/models/mcc/mail.rs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/herodb/src/db/store.rs b/herodb/src/db/store.rs index 80d13d3..879e040 100644 --- a/herodb/src/db/store.rs +++ b/herodb/src/db/store.rs @@ -1,5 +1,5 @@ use crate::db::error::{DbError, DbResult}; -use crate::db::model::{Model, Storable}; +use crate::db::model::Model; use ourdb::{OurDB, OurDBConfig, OurDBSetArgs}; use std::marker::PhantomData; use std::path::{Path, PathBuf}; diff --git a/herodb/src/models/gov/company.rs b/herodb/src/models/gov/company.rs index 577d57d..1f42a07 100644 --- a/herodb/src/models/gov/company.rs +++ b/herodb/src/models/gov/company.rs @@ -152,14 +152,14 @@ impl Company { } /// Link this company to a Circle for access control - pub fn link_to_circle(&mut self, circle_id: u32) { + pub fn link_to_circle(&mut self, _circle_id: u32) { // Implementation would involve updating a mapping in a separate database // For now, we'll just update the timestamp to indicate the change self.updated_at = Utc::now(); } /// Link this company to a Customer in the biz module - pub fn link_to_customer(&mut self, customer_id: u32) { + pub fn link_to_customer(&mut self, _customer_id: u32) { // Implementation would involve updating a mapping in a separate database // For now, we'll just update the timestamp to indicate the change self.updated_at = Utc::now(); diff --git a/herodb/src/models/gov/meeting.rs b/herodb/src/models/gov/meeting.rs index a9ca871..ca342c4 100644 --- a/herodb/src/models/gov/meeting.rs +++ b/herodb/src/models/gov/meeting.rs @@ -156,7 +156,7 @@ impl Meeting { .collect() } /// Link this meeting to a Calendar Event in the mcc module - pub fn link_to_event(&mut self, event_id: u32) -> DbResult<()> { + pub fn link_to_event(&mut self, _event_id: u32) -> DbResult<()> { // Implementation would involve updating a mapping in a separate database // For now, we'll just update the timestamp to indicate the change self.updated_at = Utc::now(); diff --git a/herodb/src/models/mcc/mail.rs b/herodb/src/models/mcc/mail.rs index 7e85aa1..e3a258a 100644 --- a/herodb/src/models/mcc/mail.rs +++ b/herodb/src/models/mcc/mail.rs @@ -106,7 +106,7 @@ impl Email { pub fn to_message(&self, id: u32, thread_id: String) -> crate::models::mcc::message::Message { use crate::models::mcc::message::Message; - let now = Utc::now(); + let _now = Utc::now(); let sender = if let Some(env) = &self.envelope { if !env.from.is_empty() { env.from[0].clone()