Update rocket to 0.5

This commit is contained in:
2020-11-12 23:37:21 +01:00
parent af434f0bc0
commit fdab612863
4 changed files with 636 additions and 414 deletions

View File

@ -37,8 +37,8 @@ impl StatusJson {
}
}
impl<'r> Responder<'r> for StatusJson {
fn respond_to(self, req: &Request) -> Result<Response<'r>, Status> {
impl<'r> Responder<'r, 'static> for StatusJson {
fn respond_to(self, req: &Request) -> Result<Response<'static>, Status> {
if self.status.code >= 400 {
warn!(
"Responding with status {}.\n\