Skip to content

Commit

Permalink
RUNTIMEを明示的にderefしてinit_loggerを起動
Browse files Browse the repository at this point in the history
  • Loading branch information
qryxip committed Nov 1, 2023
1 parent 52de238 commit ad276f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/voicevox_core_c_api/src/c_impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ impl OpenJtalkRc {

impl VoicevoxSynthesizer {
pub(crate) fn new(open_jtalk: &OpenJtalkRc, options: &InitializeOptions) -> Result<Self> {
// ロガーを起動
// FIXME: `into_result_code_with_error`を`run`とかに改名し、`init_logger`をその中に移動
let _ = *crate::RUNTIME;

let synthesizer = Synthesizer::new(open_jtalk.open_jtalk.clone(), options)?;
Ok(Self { synthesizer })
}
Expand Down

0 comments on commit ad276f8

Please sign in to comment.