From 57e82f178310ffedaeace14c2060ead35cb22772 Mon Sep 17 00:00:00 2001 From: Allinen <151441334+Allinen@users.noreply.github.com> Date: Wed, 20 May 2026 19:37:28 +0300 Subject: [PATCH] fix: simplified comparison logic --- src/service/registration_tokens/data.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/service/registration_tokens/data.rs b/src/service/registration_tokens/data.rs index 886f58805..44de694d1 100644 --- a/src/service/registration_tokens/data.rs +++ b/src/service/registration_tokens/data.rs @@ -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)"); }