diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2022-11-28 19:29:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-28 19:29:32 +0100 |
commit | 179474d2c2a09abaa8806b9da791121b6a5ca082 (patch) | |
tree | 5c311959e9ef20ee30b00eba6cc612911d9ff7d9 /src-tauri/src/lib.rs | |
parent | c52a78c2687a308187f6ee2fa3ff67486ac7d324 (diff) | |
download | FlightCore-179474d2c2a09abaa8806b9da791121b6a5ca082.tar.gz FlightCore-179474d2c2a09abaa8806b9da791121b6a5ca082.zip |
style: Auto-format all Rust code (#84)
Diffstat (limited to 'src-tauri/src/lib.rs')
-rw-r--r-- | src-tauri/src/lib.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index bfac47c7..4a817af9 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -220,9 +220,12 @@ pub async fn install_northstar( .ok_or_else(|| panic!("Couldn't find Northstar on thunderstore???")) .unwrap(); - do_install(nmod.versions.get(&nmod.latest).unwrap(), std::path::Path::new(game_path)) - .await - .unwrap(); + do_install( + nmod.versions.get(&nmod.latest).unwrap(), + std::path::Path::new(game_path), + ) + .await + .unwrap(); Ok(nmod.latest.clone()) } @@ -334,10 +337,7 @@ pub fn convert_release_candidate_number(version_number: String) -> String { /// Returns a serde json object of the parsed `enabledmods.json` file pub fn get_enabled_mods(game_install: GameInstall) -> Result<serde_json::value::Value, String> { - let enabledmods_json_path = format!( - "{}/R2Northstar/enabledmods.json", - game_install.game_path - ); + let enabledmods_json_path = format!("{}/R2Northstar/enabledmods.json", game_install.game_path); // Check for JSON file if !std::path::Path::new(&enabledmods_json_path).exists() { |