Remove unnecessary lifetime

This commit is contained in:
Mathias 2023-03-28 14:34:36 +02:00
parent 2d7f35cf57
commit 14f6bc88ea

View File

@ -197,7 +197,7 @@ impl<'d, T: BasicInstance> BufferedUart<'d, T> {
.await .await
} }
fn inner_blocking_read<'a>(&'a self, buf: &'a mut [u8]) -> Result<usize, Error> { fn inner_blocking_read(&self, buf: &mut [u8]) -> Result<usize, Error> {
loop { loop {
let mut do_pend = false; let mut do_pend = false;
let mut inner = self.inner.borrow_mut(); let mut inner = self.inner.borrow_mut();
@ -270,7 +270,7 @@ impl<'d, T: BasicInstance> BufferedUart<'d, T> {
.await .await
} }
fn inner_blocking_write<'a>(&'a self, buf: &'a [u8]) -> Result<usize, Error> { fn inner_blocking_write(&self, buf: &[u8]) -> Result<usize, Error> {
loop { loop {
let mut inner = self.inner.borrow_mut(); let mut inner = self.inner.borrow_mut();
let (n, empty) = inner.with(|state| { let (n, empty) = inner.with(|state| {