From 39efe34ad35acab912dd5753b5db7b1bfd920656 Mon Sep 17 00:00:00 2001 From: BTMuli Date: Thu, 13 Apr 2023 18:36:50 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=8C=20fix(build):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=89=93=E5=8C=85=20warn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-tauri/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index a7b4de2b..9bdd1da5 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -75,7 +75,7 @@ fn read_cookie() -> String { fn main() { tauri::Builder::default() .invoke_handler(tauri::generate_handler![mys_login, read_cookie]) - .setup(|app| { + .setup(|_app| { tauri::async_runtime::spawn( rocket::build() .attach(Cors) @@ -84,7 +84,7 @@ fn main() { ); #[cfg(debug_assertions)] // only include this code on debug builds { - let window = app.get_window("tauri-genshin").unwrap(); + let window = _app.get_window("tauri-genshin").unwrap(); window.open_devtools(); // open the devtools on startup } Ok(())