Remove unneeded annotation

This commit is contained in:
asonix 2023-09-30 17:34:05 -05:00
parent 4bb9d81f51
commit 01cbe34ac3
1 changed files with 2 additions and 1 deletions

View File

@ -96,7 +96,7 @@ where
} }
fn call(&self, req: ServiceRequest) -> Self::Future { fn call(&self, req: ServiceRequest) -> Self::Future {
let duration: Result<Option<Duration>, ParseDeadlineError> = req let duration = req
.headers() .headers()
.get("X-Request-Deadline") .get("X-Request-Deadline")
.map(|deadline| { .map(|deadline| {
@ -122,6 +122,7 @@ where
} }
}) })
.transpose(); .transpose();
DeadlineFuture::new(self.inner.call(req), duration) DeadlineFuture::new(self.inner.call(req), duration)
} }
} }