Update rocket to 0.5
This commit is contained in:
@ -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\
|
||||
|
||||
Reference in New Issue
Block a user