fix: simplified comparison logic

This commit is contained in:
Allinen authored and Ginger committed 2026-06-03 22:31:34 -04:00
1 parent 1d311073b9
commit 57e82f1783
1 file changed
+1 -1
+1 -1
View File
@@ -89,7 +89,7 @@ impl std::fmt::Display for TokenExpires {
}
},
| Self::AfterTimeOrUses { max_uses, max_age } => {
if *max_uses <= 0 {
if *max_uses == 0 {
return write!(f, "Already expired (uses exhausted)");
}