aboutsummaryrefslogtreecommitdiff
path: root/src-tauri/src/mod_management/mod.rs
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2023-02-06 21:59:46 +0100
committerGitHub <noreply@github.com>2023-02-06 21:59:46 +0100
commitacd8a26fcd68ffa7ecd0451279a6b64a44e28b53 (patch)
tree051690a7fe1fa60dfb4ced939c1f290d0beff095 /src-tauri/src/mod_management/mod.rs
parent782588f66d4e72df53376d1e8aa96c35d3225d8c (diff)
downloadFlightCore-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/mod_management/mod.rs')
-rw-r--r--src-tauri/src/mod_management/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src-tauri/src/mod_management/mod.rs b/src-tauri/src/mod_management/mod.rs
index 01e2cbb5..90dc85da 100644
--- a/src-tauri/src/mod_management/mod.rs
+++ b/src-tauri/src/mod_management/mod.rs
@@ -261,7 +261,7 @@ pub fn get_installed_mods_and_properties(
async fn get_ns_mod_download_url(thunderstore_mod_string: String) -> Result<String, String> {
// TODO: This will crash the thread if not internet connection exist. `match` should be used instead
- let index = thermite::api::get_package_index().await.unwrap().to_vec();
+ let index = thermite::api::get_package_index().unwrap().to_vec();
// Parse mod string
let parsed_ts_mod_string: ParsedThunderstoreModString = match thunderstore_mod_string.parse() {
@@ -297,7 +297,7 @@ async fn get_mod_dependencies(
dbg!(thunderstore_mod_string.clone());
// TODO: This will crash the thread if not internet connection exist. `match` should be used instead
- let index = thermite::api::get_package_index().await.unwrap().to_vec();
+ let index = thermite::api::get_package_index().unwrap().to_vec();
// String replace works but more care should be taken in the future
let ts_mod_string_url = thunderstore_mod_string.replace("-", "/");
@@ -379,7 +379,7 @@ pub async fn fc_download_mod_and_install(
);
// Download the mod
- let f = match thermite::core::manage::download_file(&download_url, path.clone()).await {
+ let f = match thermite::core::manage::download_file(&download_url, path.clone()) {
Ok(f) => f,
Err(e) => return Err(e.to_string()),
};