Fix derivable_impls

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König 2024-05-11 19:13:08 +00:00
parent ca035c9d17
commit 99878e0f72
No known key found for this signature in database

View file

@ -43,12 +43,13 @@ impl Default for SessionConfig {
}
}
#[derive(Clone, Copy, Debug, Hash, PartialOrd, Ord, PartialEq, Eq)]
#[derive(Clone, Copy, Debug, Hash, PartialOrd, Ord, PartialEq, Eq, Default)]
pub enum DeviceType {
Unknown = 0,
Computer = 1,
Tablet = 2,
Smartphone = 3,
#[default]
Speaker = 4,
Tv = 5,
Avr = 6,
@ -131,9 +132,3 @@ impl fmt::Display for DeviceType {
f.write_str(str)
}
}
impl Default for DeviceType {
fn default() -> DeviceType {
DeviceType::Speaker
}
}