Loading crates/tor-error/src/retriable.rs +1 −1 Original line number Original line Diff line number Diff line Loading @@ -151,7 +151,7 @@ pub enum AbsRetryTime { } } impl AbsRetryTime { impl AbsRetryTime { /// Construct an AbsRetryTime representing `base` + `plus` /// Construct an AbsRetryTime representing `base` + `plus`. fn from_sum(base: Instant, plus: Duration) -> Self { fn from_sum(base: Instant, plus: Duration) -> Self { match base.checked_add(plus) { match base.checked_add(plus) { Some(t) => AbsRetryTime::At(t), Some(t) => AbsRetryTime::At(t), Loading Loading
crates/tor-error/src/retriable.rs +1 −1 Original line number Original line Diff line number Diff line Loading @@ -151,7 +151,7 @@ pub enum AbsRetryTime { } } impl AbsRetryTime { impl AbsRetryTime { /// Construct an AbsRetryTime representing `base` + `plus` /// Construct an AbsRetryTime representing `base` + `plus`. fn from_sum(base: Instant, plus: Duration) -> Self { fn from_sum(base: Instant, plus: Duration) -> Self { match base.checked_add(plus) { match base.checked_add(plus) { Some(t) => AbsRetryTime::At(t), Some(t) => AbsRetryTime::At(t), Loading