Skip to content

Commit 99878e0

Browse files
committed
Fix derivable_impls
Signed-off-by: Christian König <[email protected]>
1 parent ca035c9 commit 99878e0

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

core/src/config.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,13 @@ impl Default for SessionConfig {
4343
}
4444
}
4545

46-
#[derive(Clone, Copy, Debug, Hash, PartialOrd, Ord, PartialEq, Eq)]
46+
#[derive(Clone, Copy, Debug, Hash, PartialOrd, Ord, PartialEq, Eq, Default)]
4747
pub enum DeviceType {
4848
Unknown = 0,
4949
Computer = 1,
5050
Tablet = 2,
5151
Smartphone = 3,
52+
#[default]
5253
Speaker = 4,
5354
Tv = 5,
5455
Avr = 6,
@@ -131,9 +132,3 @@ impl fmt::Display for DeviceType {
131132
f.write_str(str)
132133
}
133134
}
134-
135-
impl Default for DeviceType {
136-
fn default() -> DeviceType {
137-
DeviceType::Speaker
138-
}
139-
}

0 commit comments

Comments
 (0)