diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-10-16 23:23:10 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-16 23:23:10 +0000 |
| commit | 7fd868ade91ebd92cf68016cd40cbbad30a5918e (patch) | |
| tree | d2a94357c0e192a4ec633aaa57b9579f2f2b2922 /embassy-usb/src/control.rs | |
| parent | 6e6df229795e3ff44fc213e03e022bf38f2de47e (diff) | |
| parent | 31d4516516940720101300a40d0d6d2bb8d1728e (diff) | |
Merge pull request #2068 from barafael/const_usb_config_builder_new
Constify UsbDevice Config::new (and clippy fixes) in embassy-usb
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 | } |
