From 698c9e3ac142069cdabd2830a9a5d532271aad32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Quentin?= Date: Fri, 15 Nov 2024 17:56:23 +0100 Subject: [PATCH] Remove redundant guard --- esp-hal/src/rmt.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/esp-hal/src/rmt.rs b/esp-hal/src/rmt.rs index 78020de33e4..6df8756a038 100644 --- a/esp-hal/src/rmt.rs +++ b/esp-hal/src/rmt.rs @@ -620,7 +620,6 @@ mod impl_for_chip { /// RMT Channel 3. pub channel3: ChannelCreator, phantom: PhantomData, - _guard: PeripheralGuard, } impl<'d, M> Rmt<'d, M> @@ -632,8 +631,6 @@ mod impl_for_chip { ) -> Self { crate::into_ref!(peripheral); - let guard = PeripheralGuard::new(crate::system::Peripheral::Rmt); - Self { peripheral, channel0: ChannelCreator { @@ -653,7 +650,6 @@ mod impl_for_chip { _guard: PeripheralGuard::new(crate::system::Peripheral::Rmt), }, phantom: PhantomData, - _guard: guard, } } } @@ -712,7 +708,6 @@ mod impl_for_chip { /// RMT Channel 7. pub channel7: ChannelCreator, phantom: PhantomData, - _guard: PeripheralGuard, } impl<'d, M> Rmt<'d, M> @@ -723,8 +718,6 @@ mod impl_for_chip { peripheral: impl Peripheral

+ 'd, ) -> Self { crate::into_ref!(peripheral); - let guard = PeripheralGuard::new(crate::system::Peripheral::Rmt); - Self { peripheral, channel0: ChannelCreator { @@ -760,7 +753,6 @@ mod impl_for_chip { _guard: PeripheralGuard::new(crate::system::Peripheral::Rmt), }, phantom: PhantomData, - _guard: guard, } } } @@ -835,7 +827,6 @@ mod impl_for_chip { /// RMT Channel 3. pub channel3: ChannelCreator, phantom: PhantomData, - _guard: PeripheralGuard, } impl<'d, M> Rmt<'d, M> @@ -866,7 +857,6 @@ mod impl_for_chip { _guard: PeripheralGuard::new(crate::system::Peripheral::Rmt), }, phantom: PhantomData, - _guard: PeripheralGuard::new(crate::system::Peripheral::Rmt), } } } @@ -933,7 +923,6 @@ mod impl_for_chip { /// RMT Channel 7. pub channel7: ChannelCreator, phantom: PhantomData, - _guard: PeripheralGuard, } impl<'d, M> Rmt<'d, M> @@ -980,7 +969,6 @@ mod impl_for_chip { _guard: PeripheralGuard::new(crate::system::Peripheral::Rmt), }, phantom: PhantomData, - _guard: PeripheralGuard::new(crate::system::Peripheral::Rmt), } } }