From 1f54645469ba6ae4cde32210ff49a204cb5a0b0e Mon Sep 17 00:00:00 2001 From: Tw93 Date: Sat, 7 Jan 2023 22:19:45 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E6=9B=B4=E6=96=B0=E4=B8=80=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-tauri/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index b626ec7..d029c0d 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -101,7 +101,7 @@ fn main() -> wry::Result<()> { if !std::path::Path::new(&icon_path).exists() { icon_path = "png/icon_32.ico".to_string(); } - let icon = load_icon(std::path::Path::new(&mut icon_path)); + let icon = load_icon(std::path::Path::new(&icon_path)); common_window .with_decorations(true) .with_window_icon(Some(icon))