Fix cargo clippy issue
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
398e95aa83
commit
14c2bb5ac6
@ -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) => {
|
||||||
|
@ -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())
|
||||||
|
Loading…
Reference in New Issue
Block a user