Elide lifetimes on Peripheral::state

This commit is contained in:
Liam Murphy 2021-07-05 17:47:55 +10:00
parent 744e2cbb8a
commit 3d96b10b0c

View File

@ -68,7 +68,7 @@ impl<S: PeripheralStateUnchecked> Peripheral<S> {
this.irq_setup_done = true; this.irq_setup_done = true;
} }
pub fn state<'a>(self: Pin<&'a mut Self>) -> &'a S { pub fn state(self: Pin<&mut Self>) -> &S {
&self.into_ref().get_ref().state &self.into_ref().get_ref().state
} }
} }