diff --git a/src/core/bot/channels/whatsapp.rs b/src/core/bot/channels/whatsapp.rs index 518c6605..458a38f3 100644 --- a/src/core/bot/channels/whatsapp.rs +++ b/src/core/bot/channels/whatsapp.rs @@ -1,6 +1,5 @@ use async_trait::async_trait; use log::{error, info}; -use redis::Client as RedisClient; use serde::{Deserialize, Serialize}; use uuid::Uuid; diff --git a/src/email/types.rs b/src/email/types.rs index 5d0a34a6..6161f02c 100644 --- a/src/email/types.rs +++ b/src/email/types.rs @@ -5,6 +5,7 @@ use axum::{ use chrono::{DateTime, Utc}; use diesel::prelude::*; use diesel::sql_types::{Bool, Integer, Nullable, Text, Timestamptz, Uuid as DieselUuid, Varchar}; +use log::info; use serde::{Deserialize, Serialize}; use uuid::Uuid; @@ -416,8 +417,8 @@ impl EmailService { _ => "application/octet-stream", }; let mime_type = mime_str - .parse::() - .unwrap_or(ContentType::APPLICATION_OCTET_STREAM); + .parse::() + .unwrap_or_else(|_| "application/octet-stream".parse().unwrap()); let email = Message::builder() .from(