From f1b36638a18087ad892c3e3f8f3620495a5e7531 Mon Sep 17 00:00:00 2001 From: Cameron Garnham Date: Wed, 26 Apr 2023 18:28:53 +0200 Subject: [PATCH] dev: fix clippy warnings for: src/models/user.rs --- src/models/user.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/models/user.rs b/src/models/user.rs index 9a500d4d..f808c87a 100644 --- a/src/models/user.rs +++ b/src/models/user.rs @@ -8,12 +8,14 @@ pub struct User { pub administrator: bool, } +#[allow(clippy::module_name_repetitions)] #[derive(Debug, Serialize, Deserialize, Clone, sqlx::FromRow)] pub struct UserAuthentication { pub user_id: i64, pub password_hash: String, } +#[allow(clippy::module_name_repetitions)] #[derive(Debug, PartialEq, Eq, Serialize, Deserialize, Clone, sqlx::FromRow)] pub struct UserProfile { pub user_id: i64, @@ -24,6 +26,7 @@ pub struct UserProfile { pub avatar: String, } +#[allow(clippy::module_name_repetitions)] #[derive(Debug, Serialize, Deserialize, Clone, sqlx::FromRow)] pub struct UserCompact { pub user_id: i64, @@ -31,6 +34,7 @@ pub struct UserCompact { pub administrator: bool, } +#[allow(clippy::module_name_repetitions)] #[derive(Debug, Serialize, Deserialize, Clone, sqlx::FromRow)] pub struct UserFull { pub user_id: i64, @@ -44,6 +48,7 @@ pub struct UserFull { pub avatar: String, } +#[allow(clippy::module_name_repetitions)] #[derive(Debug, Serialize, Deserialize, Clone)] pub struct UserClaims { pub user: UserCompact,