diff --git a/esp-hal-common/src/twai/mod.rs b/esp-hal-common/src/twai/mod.rs index 6c1e2f59d70..3a1a223d2d2 100644 --- a/esp-hal-common/src/twai/mod.rs +++ b/esp-hal-common/src/twai/mod.rs @@ -264,7 +264,7 @@ impl BaudRate { /// An inactive TWAI peripheral in the "Reset"/configuration state. pub struct TwaiConfiguration<'d, T> { - peripheral: PhantomData<&'d mut PeripheralRef<'d, T>>, + peripheral: PhantomData<&'d PeripheralRef<'d, T>>, } impl<'d, T> TwaiConfiguration<'d, T> @@ -480,7 +480,7 @@ where /// Interface to the CAN transmitter part. pub struct TwaiTx<'d, T> { - _peripheral: PhantomData<&'d mut T>, + _peripheral: PhantomData<&'d T>, } impl<'d, T> TwaiTx<'d, T> @@ -520,7 +520,7 @@ where /// Interface to the CAN receiver part. pub struct TwaiRx<'d, T> { - _peripheral: PhantomData<&'d mut T>, + _peripheral: PhantomData<&'d T>, } impl<'d, T> TwaiRx<'d, T>