Skip to content

Commit 5668463

Browse files
author
Adrien Chapelet
committed
fix: clippy
1 parent 610d306 commit 5668463

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/controllers/authentication.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ pub struct AuthState {
135135

136136
use actix_web::{FromRequest, HttpMessage, HttpRequest};
137137

138+
#[allow(dead_code)]
138139
#[derive(Clone, Debug, Serialize, Deserialize)]
139140
pub enum PermissionType {
140141
#[serde(rename = "trigger_event")]
@@ -145,6 +146,7 @@ pub enum PermissionType {
145146
Write,
146147
}
147148

149+
#[allow(dead_code)]
148150
#[derive(Clone, Debug, Serialize, Deserialize)]
149151
pub struct Permission {
150152
#[serde(rename = "permission_type")]
@@ -154,6 +156,7 @@ pub struct Permission {
154156
}
155157

156158
/// Extracts authentication information for routes that optionally require it.
159+
#[allow(dead_code)]
157160
pub struct MaybeAuthenticated(Option<Rc<AuthenticationInfo>>);
158161

159162
impl FromRequest for MaybeAuthenticated {

src/models/users.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ pub struct AuthReq {
1515
pub password: String,
1616
}
1717

18+
#[allow(dead_code)]
1819
#[derive(Debug, Serialize, Deserialize)]
1920
pub struct Claims {
2021
pub user_id: String,

0 commit comments

Comments
 (0)