aboutsummaryrefslogtreecommitdiffstats
path: root/src/paste.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/paste.rs')
-rw-r--r--src/paste.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/paste.rs b/src/paste.rs
index 50b32b1..8bfe979 100644
--- a/src/paste.rs
+++ b/src/paste.rs
@@ -81,7 +81,7 @@ impl Paste {
.duration_since(std::time::UNIX_EPOCH)
.unwrap_or_default()
.as_secs();
- now > self.created_at + self.ttl_secs
+ now > self.created_at.saturating_add(self.ttl_secs)
}
}