diff options
| author | Rafael Bachmann <[email protected]> | 2023-10-15 22:11:30 +0200 |
|---|---|---|
| committer | Rafael Bachmann <[email protected]> | 2023-10-15 22:11:30 +0200 |
| commit | eeedaf2e763c79a5758460936ba32f23ceb7956c (patch) | |
| tree | b5e1abf9377cfacb63efd163fb7388d964fa9f04 /embassy-usb/src/builder.rs | |
| parent | cd92bc3145f1cc7e0182a45dd898bc737e5587b6 (diff) | |
Constify Config::new
Diffstat (limited to 'embassy-usb/src/builder.rs')
| -rw-r--r-- | embassy-usb/src/builder.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-usb/src/builder.rs b/embassy-usb/src/builder.rs index 6b68bcd7b..8860f9eea 100644 --- a/embassy-usb/src/builder.rs +++ b/embassy-usb/src/builder.rs | |||
| @@ -99,7 +99,7 @@ pub struct Config<'a> { | |||
| 99 | 99 | ||
| 100 | impl<'a> Config<'a> { | 100 | impl<'a> Config<'a> { |
| 101 | /// Create default configuration with the provided vid and pid values. | 101 | /// Create default configuration with the provided vid and pid values. |
| 102 | pub fn new(vid: u16, pid: u16) -> Self { | 102 | pub const fn new(vid: u16, pid: u16) -> Self { |
| 103 | Self { | 103 | Self { |
| 104 | device_class: 0x00, | 104 | device_class: 0x00, |
| 105 | device_sub_class: 0x00, | 105 | device_sub_class: 0x00, |
