diff --git a/src/time/time_point.rs b/src/time/time_point.rs index 302b613..ddf1455 100644 --- a/src/time/time_point.rs +++ b/src/time/time_point.rs @@ -2,7 +2,7 @@ use core::fmt; use std::ops::Neg; /// Define a time in milliseconds -#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)] +#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct TimePoint(i64); impl TimePoint { diff --git a/src/time/time_span.rs b/src/time/time_span.rs index 1eaab28..63d15a3 100644 --- a/src/time/time_span.rs +++ b/src/time/time_span.rs @@ -2,7 +2,7 @@ use super::TimePoint; use core::fmt::{self, Debug}; /// Define a time span with a start time and an end time. -#[derive(Clone, Copy, PartialEq, Eq)] +#[derive(Clone, Copy, Default, PartialEq, Eq)] pub struct TimeSpan { /// Start time of the span pub start: TimePoint,