From 65b22ccddf1682c7fc2613a4e2243f0d6a45df0e Mon Sep 17 00:00:00 2001 From: lifegpc Date: Fri, 5 Sep 2025 22:06:56 +0800 Subject: [PATCH] fix warn --- src/scripts/kirikiri/scn.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/scripts/kirikiri/scn.rs b/src/scripts/kirikiri/scn.rs index 1a60569..ab0b046 100644 --- a/src/scripts/kirikiri/scn.rs +++ b/src/scripts/kirikiri/scn.rs @@ -443,7 +443,7 @@ impl Script for ScnScript { return Err(anyhow::anyhow!("name is not a string or null")); } let has_name = text[0].is_string(); - let mut has_display_name; + let has_display_name; if text[1].is_list() { while text[1].len() <= self.language_index { text[1][self.language_index] = text[1][0].clone(); @@ -456,7 +456,6 @@ impl Script for ScnScript { "display name is not a string or null" )); } - has_display_name = text[1][self.language_index][0].is_string(); if text[1][self.language_index][1].is_string() { let m = match cur_mes.take() { Some(m) => m, @@ -557,7 +556,6 @@ impl Script for ScnScript { "display name is not a string or null" )); } - has_display_name = text[2][self.language_index][0].is_string(); if text[2][self.language_index][1].is_string() { let m = match cur_mes.take() { Some(m) => m,