From ff22bf753e18074a3ab37e8d588eaea62514ca0e Mon Sep 17 00:00:00 2001 From: Tyler Wilding Date: Sun, 22 Sep 2024 16:25:50 -0400 Subject: [PATCH] lint: fix imports and formatting --- src-tauri/src/commands/binaries.rs | 3 ++- src/components/games/GameControls.svelte | 7 ++++++- src/lib/rpc/binaries.ts | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src-tauri/src/commands/binaries.rs b/src-tauri/src/commands/binaries.rs index cccef565..aca068ff 100644 --- a/src-tauri/src/commands/binaries.rs +++ b/src-tauri/src/commands/binaries.rs @@ -1,7 +1,8 @@ +#[cfg(target_os = "windows")] +use std::os::windows::process::CommandExt; use std::{ collections::HashMap, io::ErrorKind, - os::windows::process::CommandExt, path::{Path, PathBuf}, process::Stdio, str::FromStr, diff --git a/src/components/games/GameControls.svelte b/src/components/games/GameControls.svelte index dbb97a03..b7c45814 100644 --- a/src/components/games/GameControls.svelte +++ b/src/components/games/GameControls.svelte @@ -16,7 +16,12 @@ } from "flowbite-svelte"; import { resetGameSettings, uninstallGame } from "$lib/rpc/game"; import { platform } from "@tauri-apps/api/os"; - import { getLaunchGameString, launchGame, launchGameWithCustomExecutable, openREPL } from "$lib/rpc/binaries"; + import { + getLaunchGameString, + launchGame, + launchGameWithCustomExecutable, + openREPL, + } from "$lib/rpc/binaries"; import { doesActiveToolingVersionMeetMinimum, getInstallationDirectory, diff --git a/src/lib/rpc/binaries.ts b/src/lib/rpc/binaries.ts index f6eded20..78520ba2 100644 --- a/src/lib/rpc/binaries.ts +++ b/src/lib/rpc/binaries.ts @@ -81,7 +81,7 @@ export async function launchGameWithCustomExecutable( if (customExecutable !== null) { return await invoke_rpc( "launch_game", - { gameName, inDebug: false, executableLocation: customExecutable}, + { gameName, inDebug: false, executableLocation: customExecutable }, () => {}, "_mirror_", );