cargo clippy
This commit is contained in:
parent
94aeefe450
commit
e8b3828f2c
@ -48,9 +48,7 @@ impl<'a> SessionIdentity<'a> {
|
||||
|
||||
// Check if session is valid
|
||||
if let Some(sess) = &res {
|
||||
if sess.id.is_none() {
|
||||
return None;
|
||||
}
|
||||
sess.id.as_ref()?;
|
||||
}
|
||||
|
||||
res
|
||||
|
@ -87,7 +87,7 @@ impl User {
|
||||
}
|
||||
|
||||
pub fn find_factor(&self, factor_id: &FactorID) -> Option<&TwoFactor> {
|
||||
self.two_factor.iter().find(|f| f.id.eq(&factor_id))
|
||||
self.two_factor.iter().find(|f| f.id.eq(factor_id))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user