From eb3dd1182ff991d516a5127df4c8ba7a7df08df7 Mon Sep 17 00:00:00 2001 From: Cameron Garnham Date: Wed, 26 Apr 2023 12:46:41 +0200 Subject: [PATCH] dev: fix clippy warnings for: src/models/response.rs --- src/models/response.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/models/response.rs b/src/models/response.rs index 58ec31fb..8340c4f0 100644 --- a/src/models/response.rs +++ b/src/models/response.rs @@ -8,16 +8,19 @@ pub enum OkResponses { TokenResponse(TokenResponse), } +#[allow(clippy::module_name_repetitions)] #[derive(Serialize, Deserialize, Debug)] pub struct OkResponse { pub data: T, } +#[allow(clippy::module_name_repetitions)] #[derive(Serialize, Deserialize, Debug)] pub struct ErrorResponse { pub errors: Vec, } +#[allow(clippy::module_name_repetitions)] #[derive(Serialize, Deserialize, Debug)] pub struct TokenResponse { pub token: String, @@ -25,11 +28,13 @@ pub struct TokenResponse { pub admin: bool, } +#[allow(clippy::module_name_repetitions)] #[derive(Serialize, Deserialize, Debug)] pub struct NewTorrentResponse { pub torrent_id: i64, } +#[allow(clippy::module_name_repetitions)] #[derive(Debug, Serialize, Deserialize, sqlx::FromRow)] pub struct TorrentResponse { pub torrent_id: i64, @@ -72,6 +77,7 @@ impl TorrentResponse { } } +#[allow(clippy::module_name_repetitions)] #[derive(Serialize, Deserialize, Debug, sqlx::FromRow)] pub struct TorrentsResponse { pub total: u32,