diff options
| author | Jorge Aparicio <jorge@japaric.io> | 2019-02-08 11:54:41 +0100 |
|---|---|---|
| committer | Jorge Aparicio <jorge@japaric.io> | 2019-02-08 11:54:41 +0100 |
| commit | e7586f4a8abf6204ae505cdd541f80d08051b617 (patch) | |
| tree | d4921a45aa3f6b7df0ee74aec5663dc862536fb1 /src/lib.rs | |
| parent | 60478f3623340c96c955b04cfc03a40f42536660 (diff) | |
impl Default for Duration
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |
