From b111b1100ff79a3961d4594ac66038ee40da92ae Mon Sep 17 00:00:00 2001 From: Tlntin <371043382@qq.com> Date: Wed, 7 Dec 2022 10:12:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=A3=E7=A0=81=E9=A3=8E?= =?UTF-8?q?=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-tauri/src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index c8d805e..8035024 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -253,7 +253,10 @@ fn main() -> wry::Result<()> { fn get_windows_config() -> (Option,Option) { let config_file = include_str!("../tauri.conf.json"); let config: Config = serde_json::from_str(config_file).expect("failed to parse windows config"); - (config.package.product_name.clone(),config.tauri.windows.first().cloned()) + ( + config.package.product_name.clone(), + config.tauri.windows.first().cloned(), + ) } #[cfg(target_os = "windows")]