mirror of
https://github.com/servo/servo.git
synced 2025-07-30 10:40:27 +01:00
Stop using time@0.1
in Servo (#33394)
This removes the last few uses of `time@0.1` in Servo. There are still dependencies from `style` and `webrender`, but they will be removed soon as well. The uses of this version of `time` are replaced with `std::time` types and `time@0.3` when negative `Duration` is necessary. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
095590e224
commit
bc8d8b62c3
18 changed files with 88 additions and 103 deletions
|
@ -61,6 +61,16 @@ impl Add<Duration> for CrossProcessInstant {
|
|||
}
|
||||
}
|
||||
|
||||
impl Sub<Duration> for CrossProcessInstant {
|
||||
type Output = Self;
|
||||
|
||||
fn sub(self, rhs: Duration) -> Self::Output {
|
||||
Self {
|
||||
value: self.value - rhs.whole_nanoseconds() as u64,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(all(unix, not(any(target_os = "macos", target_os = "ios"))))]
|
||||
mod platform {
|
||||
use libc::timespec;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue