usb-driver: Remove unncessary lifetime

This commit is contained in:
Gabriel Smith 2022-11-27 16:26:58 -05:00
parent d438d1b685
commit 3ca14ba4e9
3 changed files with 3 additions and 3 deletions

View file

@ -638,7 +638,7 @@ impl<'d, T: Instance> driver::ControlPipe for ControlPipe<'d, T> {
64
}
async fn setup<'a>(&'a mut self) -> [u8; 8] {
async fn setup(&mut self) -> [u8; 8] {
loop {
trace!("SETUP read waiting");
let regs = T::regs();

View file

@ -799,7 +799,7 @@ impl<'d, T: Instance> driver::ControlPipe for ControlPipe<'d, T> {
usize::from(self.max_packet_size)
}
async fn setup<'a>(&'a mut self) -> [u8; 8] {
async fn setup(&mut self) -> [u8; 8] {
loop {
trace!("SETUP read waiting");
poll_fn(|cx| {

View file

@ -220,7 +220,7 @@ pub trait ControlPipe {
fn max_packet_size(&self) -> usize;
/// Reads a single setup packet from the endpoint.
async fn setup<'a>(&'a mut self) -> [u8; 8];
async fn setup(&mut self) -> [u8; 8];
/// Reads a DATA OUT packet into `buf` in response to a control write request.
///