Fix cargo clippy issue
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pierre HUBERT 2024-12-03 22:34:19 +01:00
parent 398e95aa83
commit 14c2bb5ac6
2 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ pub enum Action<'a> {
}, },
} }
impl<'a> Action<'a> { impl Action<'_> {
pub fn as_string(&self) -> String { pub fn as_string(&self) -> String {
match self { match self {
Action::AdminDeleteUser(user) => { Action::AdminDeleteUser(user) => {

View File

@ -30,7 +30,7 @@ pub struct SessionIdentityData {
pub struct SessionIdentity<'a>(pub Option<&'a Identity>); pub struct SessionIdentity<'a>(pub Option<&'a Identity>);
impl<'a> SessionIdentity<'a> { impl SessionIdentity<'_> {
fn get_session_data(&self) -> Option<SessionIdentityData> { fn get_session_data(&self) -> Option<SessionIdentityData> {
if let Some(id) = self.0 { if let Some(id) = self.0 {
Self::deserialize_session_data(id.id().ok()) Self::deserialize_session_data(id.id().ok())