Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Yosshi999 committed Nov 3, 2024
1 parent eb26303 commit 0b8c9b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/voicevox_core/src/synthesizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ mod inner {
f0.len(),
OjtPhoneme::num_phoneme(),
&f0,
&phoneme.as_flattened(),
phoneme.as_flattened(),
style_id,
)
.await?;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0b8c9b5

Please sign in to comment.