From 48d9516f9a618bdad796ccf02abae41c215624d1 Mon Sep 17 00:00:00 2001 From: dullbananas Date: Sat, 20 Apr 2024 19:03:21 -0700 Subject: [PATCH] Update actor_language.rs --- crates/db_schema/src/impls/actor_language.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/db_schema/src/impls/actor_language.rs b/crates/db_schema/src/impls/actor_language.rs index 2619db97f..ea5f2f609 100644 --- a/crates/db_schema/src/impls/actor_language.rs +++ b/crates/db_schema/src/impls/actor_language.rs @@ -95,7 +95,7 @@ impl LocalUserLanguage { .execute(conn); let forms = lang_ids - .into_iter() + .iter() .map(|l| LocalUserLanguageForm { local_user_id: for_local_user_id, language_id: l, @@ -170,7 +170,7 @@ impl SiteLanguage { .execute(conn); let forms = lang_ids - .into_iter() + .iter() .map(|l| SiteLanguageForm { site_id: for_site_id, language_id: l, @@ -304,7 +304,7 @@ impl CommunityLanguage { // Delete old languages, not including new languages let delete_old = delete(community_language) .filter(community_id.eq(for_community_id)) - .filter(language_id.ne_all(lang_ids)) + .filter(language_id.ne_all(&lang_ids)) .execute(conn); // Insert new languages