Skip to content

Commit

Permalink
Fix clippy linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm authored Jan 27, 2025
1 parent db4e9ed commit c34af95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tenant_tokens.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub fn generate_tenant_token(
return Err(Error::InvalidUuid4Version);
}

if expires_at.map_or(false, |expires_at| OffsetDateTime::now_utc() > expires_at) {
if expires_at.is_some_and(|expires_at| OffsetDateTime::now_utc() > expires_at) {
return Err(Error::TenantTokensExpiredSignature);
}

Expand Down

0 comments on commit c34af95

Please sign in to comment.