diff options
author | GeckoEidechse <gecko.eidechse+git@pm.me> | 2022-09-14 23:32:13 +0200 |
---|---|---|
committer | GeckoEidechse <gecko.eidechse+git@pm.me> | 2022-09-14 23:32:13 +0200 |
commit | 7899a99d89bfd5f9fea52e9cdb01f367e2ccef3b (patch) | |
tree | 405e50e1d28fd0b52629a00c817a6ddcf0a17b0b /src-tauri/src/lib.rs | |
parent | 5fd674a48bfa7d36ec3e59cd703eb0ec0e363c7d (diff) | |
download | FlightCore-7899a99d89bfd5f9fea52e9cdb01f367e2ccef3b.tar.gz FlightCore-7899a99d89bfd5f9fea52e9cdb01f367e2ccef3b.zip |
Add missing `to_lowercase()`
WIthout it, the Northstar package would never be found.
Diffstat (limited to 'src-tauri/src/lib.rs')
-rw-r--r-- | src-tauri/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index df83de80..63f57cd4 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -238,7 +238,7 @@ pub async fn install_northstar(game_path: &str) -> Result<String> { let index = thermite::api::get_package_index().await.unwrap().to_vec(); let nmod = index .iter() - .find(|f| f.name.to_lowercase() == northstar_package_name) + .find(|f| f.name.to_lowercase() == northstar_package_name.to_lowercase()) .ok_or_else(|| panic!("Couldn't find Northstar on thunderstore???")) .unwrap(); |