From 4994f6a4f936b0b8122b294c156993c82c8f9afa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juli=C3=A1n=20Espina=20Del=20=C3=81ngel?= Date: Thu, 22 Jan 2026 19:26:11 -0600 Subject: [PATCH] Apply lints for rustc 1.93 --- core/engine/src/context/time.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/engine/src/context/time.rs b/core/engine/src/context/time.rs index 0fb4fca5b90..b7f04969282 100644 --- a/core/engine/src/context/time.rs +++ b/core/engine/src/context/time.rs @@ -123,10 +123,8 @@ impl std::ops::Sub for JsInstant { #[inline] fn sub(self, rhs: JsInstant) -> Self::Output { JsDuration { - inner: self - .inner - .checked_sub(rhs.inner) - .expect("overflow when subtracting durations"), + // saturating preserves the behaviour of std's Instant. + inner: self.inner.saturating_sub(rhs.inner), } } }