Skip to content

Commit

Permalink
Fixed clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
SamTV12345 committed Aug 30, 2024
1 parent ff00d5c commit 80171f1
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 7 deletions.
2 changes: 0 additions & 2 deletions src/controllers/tags_controller.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use std::sync::Mutex;
use actix_web::{delete, get, HttpResponse, post, put, web};
use actix_web::web::{Data, Json};
use utoipa::ToSchema;
Expand All @@ -8,7 +7,6 @@ use crate::models::podcast_dto::PodcastDto;
use crate::models::tag::Tag;
use crate::models::tags_podcast::TagsPodcast;
use crate::models::user::User;
use crate::service::mapping_service::MappingService;
use crate::utils::error::{CustomError};

#[derive(Debug, Serialize, Deserialize, ToSchema)]
Expand Down
3 changes: 1 addition & 2 deletions src/models/episode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use crate::dbconfig::schema::episodes::dsl::episodes as episodes_dsl;
use crate::DBType as DbConnection;
use chrono::{NaiveDateTime, Utc};
use diesel::sql_types::{Integer, Nullable, Text, Timestamp};
use diesel::{debug_query, ExpressionMethods, JoinOnDsl};
use diesel::{ExpressionMethods, JoinOnDsl};
use diesel::{
BoolExpressionMethods, Insertable, NullableExpressionMethods, OptionalExtension, QueryDsl,
QueryId, Queryable, QueryableByName, RunQueryDsl, Selectable,
Expand All @@ -14,7 +14,6 @@ use serde::{Deserialize, Serialize};
use std::fmt;
use std::io::Error;
use diesel::query_dsl::methods::DistinctDsl;
use diesel::sqlite::Sqlite;
use utoipa::ToSchema;
use crate::models::gpodder_available_podcasts::GPodderAvailablePodcasts;
use crate::models::misc_models::{
Expand Down
1 change: 0 additions & 1 deletion src/models/favorites.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ use diesel::insert_into;
use diesel::prelude::*;
use diesel::sql_types::{Bool, Integer, Text};
use serde::{Deserialize, Serialize};
use crate::dbconfig::DBType;
use crate::models::tag::Tag;

#[derive(
Expand Down
1 change: 0 additions & 1 deletion src/models/messages.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use crate::constants::inner_constants::PodcastType;
use crate::models::podcast_dto::PodcastDto;
use crate::models::podcast_episode::PodcastEpisode;
use crate::models::podcasts::Podcast;


#[derive(Serialize, Deserialize)]
Expand Down
1 change: 0 additions & 1 deletion src/service/rust_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ use crate::config::dbconfig::establish_connection;
use serde::Serialize;
use tokio::task::spawn_blocking;
use crate::controllers::server::ChatServerHandle;
use crate::dbconfig::DBType;
use crate::models::favorites::Favorite;
use crate::models::order_criteria::{OrderCriteria, OrderOption};
use crate::models::settings::Setting;
Expand Down

0 comments on commit 80171f1

Please sign in to comment.