mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2025-01-11 13:01:30 +11:00
Fix clippy warnings
This commit is contained in:
parent
7750781650
commit
021e942e47
|
@ -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…
Reference in a new issue