diff options
| author | Dario Nieuwenhuis <[email protected]> | 2021-07-12 02:46:16 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2021-07-12 03:45:48 +0200 |
| commit | c210a6efd1f77c4dd6c5df7b31e49c771ceb0cff (patch) | |
| tree | f49104dbd90152253e916cdf616c66f70c367046 | |
| parent | 16bb678368c7e781e8f4df867669727fe7988c42 (diff) | |
embassy/time: remove useless impl
| -rw-r--r-- | embassy/src/time/traits.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/embassy/src/time/traits.rs b/embassy/src/time/traits.rs index 2c97b13af..4c6134c3c 100644 --- a/embassy/src/time/traits.rs +++ b/embassy/src/time/traits.rs | |||
| @@ -30,15 +30,3 @@ pub trait Alarm { | |||
| 30 | /// If no alarm was set, this is a noop. | 30 | /// If no alarm was set, this is a noop. |
| 31 | fn clear(&self); | 31 | fn clear(&self); |
| 32 | } | 32 | } |
| 33 | |||
| 34 | impl<T: Alarm + ?Sized> Alarm for &T { | ||
| 35 | fn set_callback(&self, callback: fn(*mut ()), ctx: *mut ()) { | ||
| 36 | T::set_callback(self, callback, ctx); | ||
| 37 | } | ||
| 38 | fn set(&self, timestamp: u64) { | ||
| 39 | T::set(self, timestamp); | ||
| 40 | } | ||
| 41 | fn clear(&self) { | ||
| 42 | T::clear(self) | ||
| 43 | } | ||
| 44 | } | ||
