diff --git a/crates/voicevox_core/src/publish.rs b/crates/voicevox_core/src/publish.rs index 9684923b0..c7f710f18 100644 --- a/crates/voicevox_core/src/publish.rs +++ b/crates/voicevox_core/src/publish.rs @@ -205,19 +205,14 @@ impl From<&TtsOptions> for AudioQueryOptions { } } -#[derive(Debug, PartialEq, Eq)] +#[derive(Default, Debug, PartialEq, Eq)] pub enum AccelerationMode { + #[default] Auto, Cpu, Gpu, } -impl Default for AccelerationMode { - fn default() -> Self { - Self::Auto - } -} - #[derive(Default)] pub struct InitializeOptions { pub acceleration_mode: AccelerationMode,