aboutsummaryrefslogtreecommitdiff
path: root/embassy-usb/src/control.rs
diff options
context:
space:
mode:
authorRafael Bachmann <[email protected]>2023-10-15 23:45:44 +0200
committerRafael Bachmann <[email protected]>2023-10-15 23:52:44 +0200
commit31d4516516940720101300a40d0d6d2bb8d1728e (patch)
treece44bfebf56fea7726bccae7d2617efd360af319 /embassy-usb/src/control.rs
parent66e62e999409fd6967ab959a061f7eae660102d0 (diff)
Apply Pedantic Clippy Lints
Diffstat (limited to 'embassy-usb/src/control.rs')
-rw-r--r--embassy-usb/src/control.rs2
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}