aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJorge Aparicio <jorge@japaric.io>2019-02-08 11:54:41 +0100
committerJorge Aparicio <jorge@japaric.io>2019-02-08 11:54:41 +0100
commite7586f4a8abf6204ae505cdd541f80d08051b617 (patch)
treed4921a45aa3f6b7df0ee74aec5663dc862536fb1 /src
parent60478f3623340c96c955b04cfc03a40f42536660 (diff)
impl Default for Duration
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 6aad041..4756702 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -197,7 +197,7 @@ impl PartialOrd for Instant {
/// A `Duration` type to represent a span of time.
///
/// This data type is only available when the `timer-queue` feature is enabled
-#[derive(Clone, Copy, Eq, Ord, PartialEq, PartialOrd)]
+#[derive(Clone, Copy, Default, Eq, Ord, PartialEq, PartialOrd)]
#[cfg(feature = "timer-queue")]
pub struct Duration(u32);