fix clippy warning
This commit is contained in:
parent
53d6a2f69b
commit
0afd69f835
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user