Remove unnecessary lifetime
This commit is contained in:
parent
2d7f35cf57
commit
14f6bc88ea
@ -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| {
|
||||||
|
Loading…
Reference in New Issue
Block a user