Fix issues with incoming PRs.

This commit is contained in:
Paul committed 2021-08-16 14:07:42 +01:00
1 parent c632341eb7
commit 326e539ad3
18 files changed
+42 -32

No files matched your search

+2 -2
View File
@@ -71,8 +71,8 @@ pub enum Error {
pub struct EmptyResponse;
pub type Result<T, E = Error> = std::result::Result<T, E>;
impl<'r> Responder<'r> for EmptyResponse {
fn respond_to(self, req: &Request) -> response::Result<'r> {
impl<'r> Responder<'r, 'static> for EmptyResponse {
fn respond_to(self, _: &'r Request<'_>) -> response::Result<'static> {
Response::build()
.status(rocket::http::Status { code: 204 })
.ok()