remove tauri warnings

This commit is contained in:
SpikeHD
2022-05-17 17:52:15 -07:00
parent 163e36b501
commit 0819720e8d
2 changed files with 4 additions and 7 deletions

View File

@@ -7,7 +7,7 @@ use lazy_static::lazy_static;
use std::sync::Mutex; use std::sync::Mutex;
use std::thread; use std::thread;
use sysinfo::{ProcessExt, System, SystemExt}; use sysinfo::{System, SystemExt};
use open; use open;
use structs::{APIQuery}; use structs::{APIQuery};
@@ -67,13 +67,13 @@ fn process_watcher() {
s.refresh_all(); s.refresh_all();
// Grab the game process name // 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() { 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; let mut exists = false;
for p in proc_with_name { for _p in proc_with_name {
exists = true; exists = true;
break; break;
} }

View File

@@ -2,12 +2,9 @@ import { fs } from '@tauri-apps/api'
import { dataDir } from '@tauri-apps/api/path' import { dataDir } from '@tauri-apps/api/path'
let configFilePath: string let configFilePath: string
let roamingAppData: string
let defaultConfig: Configuration let defaultConfig: Configuration
(async() => { (async() => {
roamingAppData = await dataDir()
defaultConfig = { defaultConfig = {
toggle_grasscutter: false, toggle_grasscutter: false,
game_install_path: 'C:\\Program Files\\Genshin Impact\\Genshin Impact game\\Genshin Impact.exe', game_install_path: 'C:\\Program Files\\Genshin Impact\\Genshin Impact game\\Genshin Impact.exe',