From c210a6efd1f77c4dd6c5df7b31e49c771ceb0cff Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Mon, 12 Jul 2021 02:46:16 +0200 Subject: [PATCH] embassy/time: remove useless impl --- embassy/src/time/traits.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/embassy/src/time/traits.rs b/embassy/src/time/traits.rs index 2c97b13a..4c6134c3 100644 --- a/embassy/src/time/traits.rs +++ b/embassy/src/time/traits.rs @@ -30,15 +30,3 @@ pub trait Alarm { /// If no alarm was set, this is a noop. fn clear(&self); } - -impl Alarm for &T { - fn set_callback(&self, callback: fn(*mut ()), ctx: *mut ()) { - T::set_callback(self, callback, ctx); - } - fn set(&self, timestamp: u64) { - T::set(self, timestamp); - } - fn clear(&self) { - T::clear(self) - } -}