You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was subtracting a duration from an instant and on travis/macos this fails with the following message:
overflow when adding duration to instant
This is a copy&paste/spelling error because I am using sub:
Current code in sys::unix::time.rs (sys::windows is correct):
pubfnsub_duration(&self,other:&Duration) -> Instant{Instant{t:self.t.checked_sub(dur2intervals(other)).expect("overflow when adding duration to instant"),}}
Should be
pubfnsub_duration(&self,other:&Duration) -> Instant{Instant{t:self.t.checked_sub(dur2intervals(other)).expect("overflow when subtracting duration from time"),}}
I was subtracting a duration from an instant and on travis/macos this fails with the following message:
overflow when adding duration to instant
This is a copy&paste/spelling error because I am using sub:
Current code in sys::unix::time.rs (sys::windows is correct):
Should be
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: