mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 06:42:32 +00:00
usb-driver: Remove unncessary lifetime
This commit is contained in:
parent
d438d1b685
commit
3ca14ba4e9
@ -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();
|
||||
|
@ -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| {
|
||||
|
@ -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.
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user