diff --git a/src/controllers/api_doc.rs b/src/controllers/api_doc.rs index f4dd53c0..4203081f 100644 --- a/src/controllers/api_doc.rs +++ b/src/controllers/api_doc.rs @@ -29,7 +29,6 @@ use actix_web::dev::{Service, ServiceRequest, ServiceResponse, Transform}; use actix_web::HttpResponse; use futures::future::LocalBoxFuture; use models::itunes_models::ItunesModel; -use models::podcasts::Podcast; use std::future; use std::future::Ready; use utoipa::{ diff --git a/src/controllers/podcast_episode_controller.rs b/src/controllers/podcast_episode_controller.rs index d0e3e2b0..2ac986ca 100644 --- a/src/controllers/podcast_episode_controller.rs +++ b/src/controllers/podcast_episode_controller.rs @@ -124,7 +124,7 @@ pub async fn get_timeline( .iter() .map(|podcast_episode| { let (podcast_episode, podcast, history, favorite) = podcast_episode.clone(); - let mapped_podcast_episode: PodcastEpisodeDto = podcast_episode.clone().into(); + let mapped_podcast_episode: PodcastEpisodeDto = podcast_episode.clone(); let podcast: PodcastDto = podcast.clone(); TimeLinePodcastEpisode { diff --git a/src/models/podcasts.rs b/src/models/podcasts.rs index b789bbc8..e6441ca9 100644 --- a/src/models/podcasts.rs +++ b/src/models/podcasts.rs @@ -15,7 +15,6 @@ use diesel::QueryDsl; use diesel::{ delete, insert_into, BoolExpressionMethods, JoinOnDsl, OptionalExtension, RunQueryDsl, }; -use utoipa::ToSchema; use crate::utils::error::{map_db_error, CustomError}; #[derive(