mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Fix derivable_impls
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
parent
ca035c9d17
commit
99878e0f72
1 changed files with 2 additions and 7 deletions
|
@ -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 {
|
pub enum DeviceType {
|
||||||
Unknown = 0,
|
Unknown = 0,
|
||||||
Computer = 1,
|
Computer = 1,
|
||||||
Tablet = 2,
|
Tablet = 2,
|
||||||
Smartphone = 3,
|
Smartphone = 3,
|
||||||
|
#[default]
|
||||||
Speaker = 4,
|
Speaker = 4,
|
||||||
Tv = 5,
|
Tv = 5,
|
||||||
Avr = 6,
|
Avr = 6,
|
||||||
|
@ -131,9 +132,3 @@ impl fmt::Display for DeviceType {
|
||||||
f.write_str(str)
|
f.write_str(str)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for DeviceType {
|
|
||||||
fn default() -> DeviceType {
|
|
||||||
DeviceType::Speaker
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue