From 14c2bb5ac6fada520ee2cf2ea57fbf27f52eaa27 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Tue, 3 Dec 2024 22:34:19 +0100 Subject: [PATCH] Fix cargo clippy issue --- src/data/action_logger.rs | 2 +- src/data/session_identity.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/action_logger.rs b/src/data/action_logger.rs index a973185..cce5585 100644 --- a/src/data/action_logger.rs +++ b/src/data/action_logger.rs @@ -101,7 +101,7 @@ pub enum Action<'a> { }, } -impl<'a> Action<'a> { +impl Action<'_> { pub fn as_string(&self) -> String { match self { Action::AdminDeleteUser(user) => { diff --git a/src/data/session_identity.rs b/src/data/session_identity.rs index 6f75391..91fcc11 100644 --- a/src/data/session_identity.rs +++ b/src/data/session_identity.rs @@ -30,7 +30,7 @@ pub struct SessionIdentityData { pub struct SessionIdentity<'a>(pub Option<&'a Identity>); -impl<'a> SessionIdentity<'a> { +impl SessionIdentity<'_> { fn get_session_data(&self) -> Option { if let Some(id) = self.0 { Self::deserialize_session_data(id.id().ok())