mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2025-02-23 23:57:43 +11:00
Fix clippy warnings
This commit is contained in:
parent
7750781650
commit
021e942e47
1 changed files with 2 additions and 4 deletions
|
@ -259,8 +259,7 @@ impl Inner {
|
||||||
let ep = self
|
let ep = self
|
||||||
.in_endpoints
|
.in_endpoints
|
||||||
.get_mut(index)
|
.get_mut(index)
|
||||||
.map(Option::as_mut)
|
.and_then(Option::as_mut)
|
||||||
.flatten()
|
|
||||||
.ok_or(UsbError::InvalidEndpoint)?;
|
.ok_or(UsbError::InvalidEndpoint)?;
|
||||||
|
|
||||||
let buf_control = &self.ctrl_dpram.ep_buffer_control[index * 2];
|
let buf_control = &self.ctrl_dpram.ep_buffer_control[index * 2];
|
||||||
|
@ -289,8 +288,7 @@ impl Inner {
|
||||||
let ep = self
|
let ep = self
|
||||||
.out_endpoints
|
.out_endpoints
|
||||||
.get_mut(index)
|
.get_mut(index)
|
||||||
.map(Option::as_mut)
|
.and_then(Option::as_mut)
|
||||||
.flatten()
|
|
||||||
.ok_or(UsbError::InvalidEndpoint)?;
|
.ok_or(UsbError::InvalidEndpoint)?;
|
||||||
|
|
||||||
let buf_control = &self.ctrl_dpram.ep_buffer_control[index * 2 + 1];
|
let buf_control = &self.ctrl_dpram.ep_buffer_control[index * 2 + 1];
|
||||||
|
|
Loading…
Add table
Reference in a new issue