mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-14 16:34:01 +00:00
Fixing closures.
This commit is contained in:
parent
381e3f0757
commit
3f6a4096f8
4 changed files with 5 additions and 5 deletions
|
@ -158,7 +158,7 @@ where
|
|||
let res = web::block(move || oper.perform(db.get_ref().to_owned(), Some(ws_info)))
|
||||
.await
|
||||
.map(|json| HttpResponse::Ok().json(json))
|
||||
.map_err(|e| ErrorBadRequest(e))?;
|
||||
.map_err(ErrorBadRequest)?;
|
||||
Ok(res)
|
||||
}
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ async fn get_all_feed(
|
|||
.content_type("application/rss+xml")
|
||||
.body(rss)
|
||||
})
|
||||
.map_err(|e| ErrorBadRequest(e))?;
|
||||
.map_err(ErrorBadRequest)?;
|
||||
Ok(res)
|
||||
}
|
||||
|
||||
|
@ -100,7 +100,7 @@ async fn get_feed(
|
|||
.content_type("application/rss+xml")
|
||||
.body(rss)
|
||||
})
|
||||
.map_err(|e| ErrorBadRequest(e))?;
|
||||
.map_err(ErrorBadRequest)?;
|
||||
Ok(res)
|
||||
}
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ async fn node_info(
|
|||
})
|
||||
.await
|
||||
.map(|json| HttpResponse::Ok().json(json))
|
||||
.map_err(|e| ErrorBadRequest(e))?;
|
||||
.map_err(ErrorBadRequest)?;
|
||||
Ok(res)
|
||||
}
|
||||
|
||||
|
|
|
@ -84,6 +84,6 @@ async fn get_webfinger_response(
|
|||
})
|
||||
.await
|
||||
.map(|json| HttpResponse::Ok().json(json))
|
||||
.map_err(|e| ErrorBadRequest(e))?;
|
||||
.map_err(ErrorBadRequest)?;
|
||||
Ok(res)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue