diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2023-04-10 11:59:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-10 11:59:00 +0200 |
commit | 0d4744ad1f05ea6410b4cbe4e1e0270e67055ce6 (patch) | |
tree | 8ecfce045e0a976af6c8a82b7e83a785ec9fd7ff | |
parent | a07c8de752a3193d6e4e80fffeabde06af747fa0 (diff) | |
download | FlightCore-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>
-rw-r--r-- | src-tauri/src/thunderstore/mod.rs | 2 |
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())) |