We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db4e9ed commit c34af95Copy full SHA for c34af95
src/tenant_tokens.rs
@@ -29,7 +29,7 @@ pub fn generate_tenant_token(
29
return Err(Error::InvalidUuid4Version);
30
}
31
32
- 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) {
33
return Err(Error::TenantTokensExpiredSignature);
34
35
0 commit comments