diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2023-02-06 21:59:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-06 21:59:46 +0100 |
commit | acd8a26fcd68ffa7ecd0451279a6b64a44e28b53 (patch) | |
tree | 051690a7fe1fa60dfb4ced939c1f290d0beff095 /src-tauri/src/lib.rs | |
parent | 782588f66d4e72df53376d1e8aa96c35d3225d8c (diff) | |
download | FlightCore-acd8a26fcd68ffa7ecd0451279a6b64a44e28b53.tar.gz FlightCore-acd8a26fcd68ffa7ecd0451279a6b64a44e28b53.zip |
chore: Bump libthermite version to 0.5.2 (#163)
And fix corresponding code that broke in the process
Basically just removing `await`s as the networking functions are no
longer async.
Diffstat (limited to 'src-tauri/src/lib.rs')
-rw-r--r-- | src-tauri/src/lib.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index e43e5935..1ae55a6f 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -192,9 +192,7 @@ async fn do_install(nmod: &thermite::model::ModVersion, game_path: &std::path::P let download_path = format!("{}/{}", download_directory.clone(), filename); println!("{}", download_path); - let nfile = thermite::core::manage::download_file(&nmod.url, download_path) - .await - .unwrap(); + let nfile = thermite::core::manage::download_file(&nmod.url, download_path).unwrap(); println!("Extracting Northstar..."); extract(nfile, game_path)?; @@ -223,7 +221,7 @@ pub async fn install_northstar( None => "Northstar".to_string(), }; - let index = thermite::api::get_package_index().await.unwrap().to_vec(); + let index = thermite::api::get_package_index().unwrap().to_vec(); let nmod = index .iter() .find(|f| f.name.to_lowercase() == northstar_package_name.to_lowercase()) |