mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-12-22 19:31:35 +00:00
Remove unneeded annotation
This commit is contained in:
parent
4bb9d81f51
commit
01cbe34ac3
1 changed files with 2 additions and 1 deletions
|
@ -96,7 +96,7 @@ where
|
|||
}
|
||||
|
||||
fn call(&self, req: ServiceRequest) -> Self::Future {
|
||||
let duration: Result<Option<Duration>, ParseDeadlineError> = req
|
||||
let duration = req
|
||||
.headers()
|
||||
.get("X-Request-Deadline")
|
||||
.map(|deadline| {
|
||||
|
@ -122,6 +122,7 @@ where
|
|||
}
|
||||
})
|
||||
.transpose();
|
||||
|
||||
DeadlineFuture::new(self.inner.call(req), duration)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue