From 7899a99d89bfd5f9fea52e9cdb01f367e2ccef3b Mon Sep 17 00:00:00 2001 From: GeckoEidechse Date: Wed, 14 Sep 2022 23:32:13 +0200 Subject: Add missing `to_lowercase()` WIthout it, the Northstar package would never be found. --- src-tauri/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src-tauri') 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 { 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(); -- cgit v1.2.3