Skip to content

Commit c34af95

Browse files
Fix clippy linting issue
1 parent db4e9ed commit c34af95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tenant_tokens.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub fn generate_tenant_token(
2929
return Err(Error::InvalidUuid4Version);
3030
}
3131

32-
if expires_at.map_or(false, |expires_at| OffsetDateTime::now_utc() > expires_at) {
32+
if expires_at.is_some_and(|expires_at| OffsetDateTime::now_utc() > expires_at) {
3333
return Err(Error::TenantTokensExpiredSignature);
3434
}
3535

0 commit comments

Comments
 (0)