aboutsummaryrefslogtreecommitdiff
path: root/src/ostimer.rs
diff options
context:
space:
mode:
authorJames Munns <[email protected]>2025-11-13 17:50:11 +0100
committerJames Munns <[email protected]>2025-11-13 18:02:50 +0100
commit357a538e8d5f69c8c0aeacfd416f1ad99b0907d3 (patch)
treeaa209bf8dc7d3869f06bd6d5a3368771ee155b68 /src/ostimer.rs
parent9387d3352a39a903757860568e41890b022c990f (diff)
autofix clippy lints
Diffstat (limited to 'src/ostimer.rs')
-rw-r--r--src/ostimer.rs6
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
154impl<'d> Default for Alarm<'d> {
155 fn default() -> Self {
156 Self::new()
157 }
158}
159
154impl<'d> Alarm<'d> { 160impl<'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 {