aboutsummaryrefslogtreecommitdiff
path: root/src-tauri
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2023-04-10 11:59:00 +0200
committerGitHub <noreply@github.com>2023-04-10 11:59:00 +0200
commit0d4744ad1f05ea6410b4cbe4e1e0270e67055ce6 (patch)
tree8ecfce045e0a976af6c8a82b7e83a785ec9fd7ff /src-tauri
parenta07c8de752a3193d6e4e80fffeabde06af747fa0 (diff)
downloadFlightCore-0d4744ad1f05ea6410b4cbe4e1e0270e67055ce6.tar.gz
FlightCore-0d4744ad1f05ea6410b4cbe4e1e0270e67055ce6.zip
fix: Remove unnecessary `as_ref` call (#261)
Fixes the last clippy warning Co-authored-by: cat_or_not <41955154+catornot@users.noreply.github.com>
Diffstat (limited to 'src-tauri')
-rw-r--r--src-tauri/src/thunderstore/mod.rs2
1 files changed, 1 insertions, 1 deletions
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<Vec<ThunderstoreMod>, 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()))