Skip to content

Commit 6048564

Browse files
committed
Make explicit a Duration subtraction
Thanks clippy!
1 parent 1c3e887 commit 6048564

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/engine/src/context/time.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ impl std::ops::Sub for JsInstant {
123123
#[inline]
124124
fn sub(self, rhs: JsInstant) -> Self::Output {
125125
JsDuration {
126-
inner: self.inner - rhs.inner,
126+
inner: self.inner.checked_sub(rhs.inner).unwrap(),
127127
}
128128
}
129129
}

0 commit comments

Comments
 (0)