aboutsummaryrefslogtreecommitdiff
path: root/embassy-time/src/timer.rs
diff options
context:
space:
mode:
authorFrostie314159 <[email protected]>2023-08-29 08:35:29 +0200
committerFrostie314159 <[email protected]>2023-08-29 08:35:29 +0200
commitde01fe352b954c58f8c403d30da496d880b7e353 (patch)
treebc6a2010943ae609284a8f5894db50260680927a /embassy-time/src/timer.rs
parent70662ec4ba1d0ba9edd9d6b7a781c19dec938616 (diff)
Removed unnecessary newline.
Diffstat (limited to 'embassy-time/src/timer.rs')
-rw-r--r--embassy-time/src/timer.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/embassy-time/src/timer.rs b/embassy-time/src/timer.rs
index 8996aefbc..88134bc69 100644
--- a/embassy-time/src/timer.rs
+++ b/embassy-time/src/timer.rs
@@ -133,8 +133,7 @@ impl Ticker {
133 Self { expires_at, duration } 133 Self { expires_at, duration }
134 } 134 }
135 135
136 /// Resets the ticker back to its original state. 136 /// Resets the ticker back to its original state.
137 ///
138 /// This causes the ticker to go back to zero, even if the current tick isn't over yet. 137 /// This causes the ticker to go back to zero, even if the current tick isn't over yet.
139 pub fn reset(&mut self) { 138 pub fn reset(&mut self) {
140 self.expires_at = Instant::now() + self.duration; 139 self.expires_at = Instant::now() + self.duration;