From c58a1a41bf28a357799b85fd9b066cc60008fad5 Mon Sep 17 00:00:00 2001 From: tuna2134 Date: Mon, 9 Sep 2024 12:05:48 +0000 Subject: [PATCH] chore: clippy --- sbv2_core/src/text.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbv2_core/src/text.rs b/sbv2_core/src/text.rs index 39e51f0..0abed04 100644 --- a/sbv2_core/src/text.rs +++ b/sbv2_core/src/text.rs @@ -115,7 +115,7 @@ impl JTalkProcess { let (string, pron) = self.parse_to_string_and_pron(parts.clone()); let mut yomi = pron.replace('’', ""); let word = replace_punctuation(string); - assert!(yomi != "", "Empty yomi: {}", word); + assert!(!yomi.is_empty(), "Empty yomi: {}", word); if yomi == "、" { if !word .chars()