From 14f6bc88ea9ab5b6eebff97371de0feeffd25a62 Mon Sep 17 00:00:00 2001 From: Mathias Date: Tue, 28 Mar 2023 14:34:36 +0200 Subject: [PATCH] Remove unnecessary lifetime --- embassy-stm32/src/usart/buffered.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/embassy-stm32/src/usart/buffered.rs b/embassy-stm32/src/usart/buffered.rs index 3377b3f9..cd7d72f9 100644 --- a/embassy-stm32/src/usart/buffered.rs +++ b/embassy-stm32/src/usart/buffered.rs @@ -197,7 +197,7 @@ impl<'d, T: BasicInstance> BufferedUart<'d, T> { .await } - fn inner_blocking_read<'a>(&'a self, buf: &'a mut [u8]) -> Result { + fn inner_blocking_read(&self, buf: &mut [u8]) -> Result { loop { let mut do_pend = false; let mut inner = self.inner.borrow_mut(); @@ -270,7 +270,7 @@ impl<'d, T: BasicInstance> BufferedUart<'d, T> { .await } - fn inner_blocking_write<'a>(&'a self, buf: &'a [u8]) -> Result { + fn inner_blocking_write(&self, buf: &[u8]) -> Result { loop { let mut inner = self.inner.borrow_mut(); let (n, empty) = inner.with(|state| {