Skip to content

Commit

Permalink
defaultの記述を新しい形にした
Browse files Browse the repository at this point in the history
  • Loading branch information
qwerty2501 committed Aug 23, 2022
1 parent 07bc35b commit d1e2c4b
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions crates/voicevox_core/src/publish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d1e2c4b

Please sign in to comment.