From 0b8c9b5c9b6f253663358a4737b69d63bf378b30 Mon Sep 17 00:00:00 2001 From: Yosshi999 Date: Sun, 3 Nov 2024 19:37:39 +0900 Subject: [PATCH] fix lint --- crates/voicevox_core/src/synthesizer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/voicevox_core/src/synthesizer.rs b/crates/voicevox_core/src/synthesizer.rs index fb3cddc74..1f933f8dd 100644 --- a/crates/voicevox_core/src/synthesizer.rs +++ b/crates/voicevox_core/src/synthesizer.rs @@ -385,7 +385,7 @@ mod inner { f0.len(), OjtPhoneme::num_phoneme(), &f0, - &phoneme.as_flattened(), + phoneme.as_flattened(), style_id, ) .await?; @@ -1019,7 +1019,7 @@ mod inner { let clipped_end = min(end, frame_length); // 指定領域が空の区間だった場合、ONNXRuntimeに渡す前に早期リターン if (clipped_start..clipped_end).is_empty() { - return Ok(ndarray::arr1(&vec![])); + return Ok(ndarray::arr1(&[])); } // マージンがデータからはみ出さないことを保証 // cf. https://github.com/VOICEVOX/voicevox_core/pull/854#discussion_r1803691291