diff options
| author | Felipe Balbi <[email protected]> | 2025-11-13 09:06:43 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-11-13 09:06:43 -0800 |
| commit | 7480db25d5cc1866a3e037bfb89f990d9847bd10 (patch) | |
| tree | 8128d3f0ba58c530a5fb83f6eca62a8b12a1709b /src/ostimer.rs | |
| parent | 6eb28d3e7b7290d2998229b1bfb624e33575ea83 (diff) | |
| parent | f1636f3913e06f84ec2a097924bd7154b9bb1a3c (diff) | |
Merge pull request #13 from jamesmunns/james/repac
Switch to new PAC commit
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 { |
