This repository has been archived by the owner on Nov 6, 2020. It is now read-only.
Replace timestamp_checked_add
with SystemTime::checked_add
when available in rustc
#10406
Labels
P5-sometimesoon 🌲
Issue is worth doing soon.
Q2-easy 💃
Can be fixed by copy and pasting from StackOverflow.
We have our own implementation of SystemTime::checked_add because it is
unstable
untilRust 1.34.0
Thus, when
Rust 1.34.0
we should remove that implementation alternatively provide both via feature flag timestamp_checked_add to makeparity
compile with older versions thanRust 1.34
I have a pending PR #10383 in regard to this which may redundant and it could be closed if we remove our helpers completely but there are some additional
checked_add
operations that could be extracted to a separate if that is the caseThe text was updated successfully, but these errors were encountered: