From 01db253900475a03db6d6dbad3e34ab4ee662c1e Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Sat, 4 Apr 2026 17:49:40 -0300 Subject: [PATCH] fix: add log::info import, fix ContentType parse, remove unused RedisClient import --- src/core/bot/channels/whatsapp.rs | 1 - src/email/types.rs | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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(