fix clippy warning

This commit is contained in:
jb-alvarado 2023-03-10 11:32:15 +01:00
parent 53d6a2f69b
commit 0afd69f835

View File

@ -14,8 +14,9 @@ use simplelog::*;
use crate::utils::Media; use crate::utils::Media;
/// Defined process units. /// Defined process units.
#[derive(Clone, Debug, Copy, Eq, Serialize, Deserialize, PartialEq)] #[derive(Clone, Debug, Default, Copy, Eq, Serialize, Deserialize, PartialEq)]
pub enum ProcessUnit { pub enum ProcessUnit {
#[default]
Decoder, Decoder,
Encoder, Encoder,
Ingest, Ingest,
@ -31,12 +32,6 @@ impl fmt::Display for ProcessUnit {
} }
} }
impl Default for ProcessUnit {
fn default() -> Self {
ProcessUnit::Decoder
}
}
use ProcessUnit::*; use ProcessUnit::*;
/// Process Controller /// Process Controller