diff options
Diffstat (limited to 'src-tauri')
-rw-r--r-- | src-tauri/src/lib.rs | 10 |
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)?; |