]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #16650 : ruud-v-a/rust/timespec-arithmetic, r=alexcrichton
authorbors <bors@rust-lang.org>
Sun, 31 Aug 2014 06:41:30 +0000 (06:41 +0000)
committerbors <bors@rust-lang.org>
Sun, 31 Aug 2014 06:41:30 +0000 (06:41 +0000)
This changes the `Add` and `Sub` implementations for `Timespec` introduced in #16573 to use `Duration` as the time span type instead of `Timespec` itself, as [suggested](https://github.com/rust-lang/rust/pull/16573#issuecomment-52593408) by @sfackler.

This depends on #16626, because is uses `Duration::seconds(i64)`, whereas currently `Duration::seconds` takes an `i32`.


Trivial merge