]> Untitled Git - lemmy.git/blobdiff - crates/api/src/community/transfer.rs
Diesel 2.0.0 upgrade (#2452)
[lemmy.git] / crates / api / src / community / transfer.rs
index 9d8044e3d8394951329b0b43978abd7e69ae7c90..1b6abb21b91589218e461cd12ccb2d02fdd7ba74 100644 (file)
@@ -13,7 +13,7 @@ use lemmy_db_schema::{
   traits::{Crud, Joinable},
 };
 use lemmy_db_views_actor::structs::{CommunityModeratorView, CommunityView, PersonViewSafe};
-use lemmy_utils::{location_info, ConnectionId, LemmyError};
+use lemmy_utils::{error::LemmyError, location_info, ConnectionId};
 use lemmy_websocket::LemmyContext;
 
 // TODO: we dont do anything for federation here, it should be updated the next time the community
@@ -75,7 +75,7 @@ impl Perform for TransferCommunity {
         person_id: cmod.moderator.id,
       };
 
-      let join = move |conn: &'_ _| CommunityModerator::join(conn, &community_moderator_form);
+      let join = move |conn: &mut _| CommunityModerator::join(conn, &community_moderator_form);
       blocking(context.pool(), join)
         .await?
         .map_err(|e| LemmyError::from_error_message(e, "community_moderator_already_exists"))?;