diff --git a/core/src/config.rs b/core/src/config.rs index bd7136f1..674c5020 100644 --- a/core/src/config.rs +++ b/core/src/config.rs @@ -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 - } -}