mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-21 22:32:29 +00:00
Constify Config::new
This commit is contained in:
parent
cd92bc3145
commit
eeedaf2e76
@ -99,7 +99,7 @@ pub struct Config<'a> {
|
||||
|
||||
impl<'a> Config<'a> {
|
||||
/// Create default configuration with the provided vid and pid values.
|
||||
pub fn new(vid: u16, pid: u16) -> Self {
|
||||
pub const fn new(vid: u16, pid: u16) -> Self {
|
||||
Self {
|
||||
device_class: 0x00,
|
||||
device_sub_class: 0x00,
|
||||
|
Loading…
Reference in New Issue
Block a user