diff options
| author | Rafael Bachmann <[email protected]> | 2023-10-15 23:45:44 +0200 |
|---|---|---|
| committer | Rafael Bachmann <[email protected]> | 2023-10-15 23:52:44 +0200 |
| commit | 31d4516516940720101300a40d0d6d2bb8d1728e (patch) | |
| tree | ce44bfebf56fea7726bccae7d2617efd360af319 /embassy-usb/src/control.rs | |
| parent | 66e62e999409fd6967ab959a061f7eae660102d0 (diff) | |
Apply Pedantic Clippy Lints
Diffstat (limited to 'embassy-usb/src/control.rs')
| -rw-r--r-- | embassy-usb/src/control.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-usb/src/control.rs b/embassy-usb/src/control.rs index ceccfd85b..79f736309 100644 --- a/embassy-usb/src/control.rs +++ b/embassy-usb/src/control.rs | |||
| @@ -120,7 +120,7 @@ impl Request { | |||
| 120 | } | 120 | } |
| 121 | 121 | ||
| 122 | /// Gets the descriptor type and index from the value field of a GET_DESCRIPTOR request. | 122 | /// Gets the descriptor type and index from the value field of a GET_DESCRIPTOR request. |
| 123 | pub fn descriptor_type_index(&self) -> (u8, u8) { | 123 | pub const fn descriptor_type_index(&self) -> (u8, u8) { |
| 124 | ((self.value >> 8) as u8, self.value as u8) | 124 | ((self.value >> 8) as u8, self.value as u8) |
| 125 | } | 125 | } |
| 126 | } | 126 | } |
