From 0d4744ad1f05ea6410b4cbe4e1e0270e67055ce6 Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Mon, 10 Apr 2023 11:59:00 +0200 Subject: fix: Remove unnecessary `as_ref` call (#261) Fixes the last clippy warning Co-authored-by: cat_or_not <41955154+catornot@users.noreply.github.com> --- src-tauri/src/thunderstore/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src-tauri/src/thunderstore/mod.rs') diff --git a/src-tauri/src/thunderstore/mod.rs b/src-tauri/src/thunderstore/mod.rs index 483968cf..e9eb30d7 100644 --- a/src-tauri/src/thunderstore/mod.rs +++ b/src-tauri/src/thunderstore/mod.rs @@ -66,7 +66,7 @@ pub async fn query_thunderstore_packages_api() -> Result, S }; // Remove some mods from listing - let to_remove_set: HashSet<&str> = BLACKLISTED_MODS.iter().map(|s| s.as_ref()).collect(); + let to_remove_set: HashSet<&str> = BLACKLISTED_MODS.iter().copied().collect(); let filtered_packages = parsed_json .into_iter() .filter(|package| !to_remove_set.contains(&package.full_name.as_ref())) -- cgit v1.2.3