2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-11-09 22:14:59 +00:00

Remove unneeded annotation

This commit is contained in:
asonix 2023-09-30 17:34:05 -05:00
parent 4bb9d81f51
commit 01cbe34ac3

View file

@ -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)
}
}