diff options
| author | James Munns <[email protected]> | 2025-11-13 17:50:11 +0100 |
|---|---|---|
| committer | James Munns <[email protected]> | 2025-11-13 18:02:50 +0100 |
| commit | 357a538e8d5f69c8c0aeacfd416f1ad99b0907d3 (patch) | |
| tree | aa209bf8dc7d3869f06bd6d5a3368771ee155b68 /src/ostimer.rs | |
| parent | 9387d3352a39a903757860568e41890b022c990f (diff) | |
autofix clippy lints
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 { |
