From e8dbf956e14c63c18e8e9988d86a14ad96e5837a Mon Sep 17 00:00:00 2001 From: Masato Kikuchi Date: Thu, 27 Mar 2025 13:21:07 +0900 Subject: [PATCH] fix: forget to give return --- crates/sbv2_core/src/jtalk.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/sbv2_core/src/jtalk.rs b/crates/sbv2_core/src/jtalk.rs index 594c14d..705e066 100644 --- a/crates/sbv2_core/src/jtalk.rs +++ b/crates/sbv2_core/src/jtalk.rs @@ -76,7 +76,7 @@ static MORA_PATTERN: Lazy> = Lazy::new(|| { }); static LONG_PATTERN: Lazy = Lazy::new(|| Regex::new(r"(\w)(ー*)").unwrap()); -fn phone_tone_to_kana(phones: Vec, tones: Vec) { +fn phone_tone_to_kana(phones: Vec, tones: Vec) -> Vec<(String, i32)> { let mut results = Vec::new(); let mut current_mora = String::new(); for ((phone, next_phone), (tone, next_tone)) in phones @@ -98,6 +98,7 @@ fn phone_tone_to_kana(phones: Vec, tones: Vec) { current_mora = String::new(); } } + results } pub struct JTalkProcess {