fix rust warnings

This commit is contained in:
SpikeHD
2022-05-16 19:15:59 -07:00
parent 1463435b2a
commit 0381af4a32
3 changed files with 3 additions and 4 deletions

View File

@@ -4,7 +4,6 @@ windows_subsystem = "windows"
)]
use open;
use tokio::sync::oneshot::Sender;
use structs::{APIQuery};
mod file_helpers;
@@ -72,7 +71,7 @@ fn run_program(path: String) {
#[tauri::command]
fn run_jar(path: String, execute_in: String, java_path: String) {
let mut command = if java_path.is_empty() {
let command = if java_path.is_empty() {
format!("java -jar {}", path)
} else {
format!("\"{}\" -jar {}", java_path, path)