Skip to content

Commit

Permalink
fix clippy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
genusistimelord committed Nov 13, 2023
1 parent 013436e commit 024a3a6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,7 @@ where
pub fn is_logged_in(&mut self) -> AuthStatus {
if let Some(id) = self.session.get::<Type>(&self.config.session_id) {
if id == self.id {
if (self.config.cache && self.cache.inner.contains_key(&self.id))
|| !self.config.cache
{
if !self.config.cache || self.cache.inner.contains_key(&self.id) {
AuthStatus::LoggedIn
} else {
AuthStatus::StaleUser
Expand Down

0 comments on commit 024a3a6

Please sign in to comment.