From 0819720e8d96047c63f6034e034934fcf88390d1 Mon Sep 17 00:00:00 2001 From: SpikeHD Date: Tue, 17 May 2022 17:52:15 -0700 Subject: [PATCH] remove tauri warnings --- src-tauri/src/main.rs | 8 ++++---- src/utils/configuration.ts | 3 --- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index fbd153a..084fc86 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -7,7 +7,7 @@ use lazy_static::lazy_static; use std::sync::Mutex; use std::thread; -use sysinfo::{ProcessExt, System, SystemExt}; +use sysinfo::{System, SystemExt}; use open; use structs::{APIQuery}; @@ -67,13 +67,13 @@ fn process_watcher() { s.refresh_all(); // Grab the game process name - let mut proc = WATCH_GAME_PROCESS.lock().unwrap().to_string(); + let proc = WATCH_GAME_PROCESS.lock().unwrap().to_string(); if !&proc.is_empty() { - let mut proc_with_name = s.processes_by_exact_name(&proc); + let proc_with_name = s.processes_by_exact_name(&proc); let mut exists = false; - for p in proc_with_name { + for _p in proc_with_name { exists = true; break; } diff --git a/src/utils/configuration.ts b/src/utils/configuration.ts index 0ab55e7..0d0498b 100644 --- a/src/utils/configuration.ts +++ b/src/utils/configuration.ts @@ -2,12 +2,9 @@ import { fs } from '@tauri-apps/api' import { dataDir } from '@tauri-apps/api/path' let configFilePath: string -let roamingAppData: string let defaultConfig: Configuration (async() => { - roamingAppData = await dataDir() - defaultConfig = { toggle_grasscutter: false, game_install_path: 'C:\\Program Files\\Genshin Impact\\Genshin Impact game\\Genshin Impact.exe',