diff options
Diffstat (limited to 'src/ostimer.rs')
| -rw-r--r-- | src/ostimer.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ostimer.rs b/src/ostimer.rs index a4cab6970..8bc68389a 100644 --- a/src/ostimer.rs +++ b/src/ostimer.rs | |||
| @@ -151,6 +151,12 @@ pub struct Alarm<'d> { | |||
| 151 | _phantom: core::marker::PhantomData<&'d mut ()>, | 151 | _phantom: core::marker::PhantomData<&'d mut ()>, |
| 152 | } | 152 | } |
| 153 | 153 | ||
| 154 | impl<'d> Default for Alarm<'d> { | ||
| 155 | fn default() -> Self { | ||
| 156 | Self::new() | ||
| 157 | } | ||
| 158 | } | ||
| 159 | |||
| 154 | impl<'d> Alarm<'d> { | 160 | impl<'d> Alarm<'d> { |
| 155 | /// Create a new alarm instance | 161 | /// Create a new alarm instance |
| 156 | pub fn new() -> Self { | 162 | pub fn new() -> Self { |
