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