diff options
| author | James Munns <[email protected]> | 2025-11-13 18:11:22 +0100 |
|---|---|---|
| committer | James Munns <[email protected]> | 2025-11-13 18:11:22 +0100 |
| commit | 0f8e7650b937aa5d4accef3fdf01047afe099df3 (patch) | |
| tree | f14a38f1ce61d8749224304c6c84bf3673cb3b01 /src/ostimer.rs | |
| parent | dd7a90eb51197fae6ef6c6b7beae977a9143e268 (diff) | |
| parent | 7480db25d5cc1866a3e037bfb89f990d9847bd10 (diff) | |
Merge remote-tracking branch 'origin/main' into james/impl-clocks
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 { |
