Skip to content

Commit

Permalink
kana: boolをやめ、"_from_kana"を復活させる (#577)
Browse files Browse the repository at this point in the history
  • Loading branch information
qryxip authored Sep 23, 2023
1 parent bbb35b4 commit 302d6b9
Show file tree
Hide file tree
Showing 15 changed files with 785 additions and 508 deletions.
6 changes: 6 additions & 0 deletions crates/voicevox_core/src/engine/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ pub struct AudioQueryModel {
kana: Option<String>,
}

impl AudioQueryModel {
pub(crate) fn with_kana(self, kana: Option<String>) -> Self {
Self { kana, ..self }
}
}

#[cfg(test)]
mod tests {
use super::*;
Expand Down
Loading

0 comments on commit 302d6b9

Please sign in to comment.