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
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??;