Skip to content

Commit

Permalink
better extraction from Label
Browse files Browse the repository at this point in the history
  • Loading branch information
phenylshima committed Feb 15, 2024
1 parent 0d722f5 commit ca10614
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions crates/voicevox_core/src/engine/full_context_label.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,11 @@ fn generate_accent_phrases(
continue;
}

let Some((Some(ap_curr), Some(bg_curr))) = labels
.first()
.map(|label| (&label.accent_phrase_curr, &label.breath_group_curr))
let Some(Label {
accent_phrase_curr: Some(ap_curr),
breath_group_curr: Some(bg_curr),
..
}) = labels.first()
else {
continue;
};
Expand Down

0 comments on commit ca10614

Please sign in to comment.