aboutsummaryrefslogtreecommitdiff
path: root/src-tauri/src/lib.rs
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2022-09-10 00:17:30 +0200
committerGeckoEidechse <gecko.eidechse+git@pm.me>2022-09-10 00:17:30 +0200
commitdc28150675347180741e8b7d8e4fec42847bac76 (patch)
treecbe95c78e6abd5d06ec1defb6970b0de671c824d /src-tauri/src/lib.rs
parent6cf9f19406dc4eb9463927bba85c71633f8f6fdb (diff)
downloadFlightCore-dc28150675347180741e8b7d8e4fec42847bac76.tar.gz
FlightCore-dc28150675347180741e8b7d8e4fec42847bac76.zip
Apply auto-format
Diffstat (limited to 'src-tauri/src/lib.rs')
-rw-r--r--src-tauri/src/lib.rs10
1 files changed, 3 insertions, 7 deletions
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs
index d0c76d8e..178ae2d4 100644
--- a/src-tauri/src/lib.rs
+++ b/src-tauri/src/lib.rs
@@ -150,16 +150,12 @@ async fn do_install(nmod: &thermite::model::Mod, game_path: &std::path::Path) ->
std::fs::create_dir_all(download_directory.clone())?;
-
let download_path = format!("{}/{}", download_directory, filename);
println!("{}", download_path);
- let nfile = thermite::core::actions::download_file(
- &nmod.url,
- download_path,
- )
- .await
- .unwrap();
+ let nfile = thermite::core::actions::download_file(&nmod.url, download_path)
+ .await
+ .unwrap();
println!("Extracting Northstar...");
extract(nfile, game_path)?;