chore: Derive default

This commit is contained in:
Baud 2024-02-05 21:13:53 +00:00
parent 621b085381
commit de6f4b2a4d
1 changed files with 6 additions and 18 deletions

View File

@ -1,4 +1,6 @@
#[derive(Default)]
pub enum Model { pub enum Model {
#[default]
Unknown = 0x00, Unknown = 0x00,
TVS = 0x01, TVS = 0x01,
OneME = 0x02, OneME = 0x02,
@ -19,13 +21,9 @@ pub enum Model {
MiniExtremeISO = 0x11, MiniExtremeISO = 0x11,
} }
impl Default for Model { #[derive(Default)]
fn default() -> Self {
Model::Unknown
}
}
pub enum ProtocolVersion { pub enum ProtocolVersion {
#[default]
Unknown = 0, Unknown = 0,
V7_2 = 0x00020016, // 2.22 // TODO - verify this is correct V7_2 = 0x00020016, // 2.22 // TODO - verify this is correct
V7_5_2 = 0x0002001b, // 2.27 // The naming of this may be off V7_5_2 = 0x0002001b, // 2.27 // The naming of this may be off
@ -34,12 +32,6 @@ pub enum ProtocolVersion {
V8_1_1 = 0x0002001e, // 2.30 V8_1_1 = 0x0002001e, // 2.30
} }
impl Default for ProtocolVersion {
fn default() -> Self {
ProtocolVersion::Unknown
}
}
pub enum TransitionStyle { pub enum TransitionStyle {
MIX = 0x00, MIX = 0x00,
DIP = 0x01, DIP = 0x01,
@ -257,7 +249,9 @@ pub enum TransferMode {
WriteAudio = 256, WriteAudio = 256,
} }
#[derive(Default)]
pub enum VideoMode { pub enum VideoMode {
#[default]
N525i5994NTSC = 0, N525i5994NTSC = 0,
P625i50PAL = 1, P625i50PAL = 1,
N525i5994169 = 2, N525i5994169 = 2,
@ -293,12 +287,6 @@ pub enum VideoMode {
N1080p60 = 27, N1080p60 = 27,
} }
impl Default for VideoMode {
fn default() -> Self {
VideoMode::N525i5994NTSC
}
}
pub enum TransferState { pub enum TransferState {
Queued, Queued,
Locked, Locked,