]> Untitled Git - lemmy.git/blobdiff - crates/apub_receive/src/http/person.rs
Running clippy --fix (#1647)
[lemmy.git] / crates / apub_receive / src / http / person.rs
index 69598ec2af906895d592e56dad97eefa279d0e12..0d0b8f7651bd07b525308d0d0b1be0ba56db6c8c 100644 (file)
@@ -44,7 +44,7 @@ pub(crate) async fn get_apub_person_outbox(
   context: web::Data<LemmyContext>,
 ) -> Result<HttpResponse<Body>, LemmyError> {
   let person = blocking(context.pool(), move |conn| {
-    Person::find_by_name(&conn, &info.user_name)
+    Person::find_by_name(conn, &info.user_name)
   })
   .await??;
   // TODO: populate the person outbox
@@ -62,7 +62,7 @@ pub(crate) async fn get_apub_person_inbox(
   context: web::Data<LemmyContext>,
 ) -> Result<HttpResponse<Body>, LemmyError> {
   let person = blocking(context.pool(), move |conn| {
-    Person::find_by_name(&conn, &info.user_name)
+    Person::find_by_name(conn, &info.user_name)
   })
   .await??;