diff options
Diffstat (limited to 'src/clock.rs')
| -rw-r--r-- | src/clock.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/clock.rs b/src/clock.rs index 7757925..f7e728f 100644 --- a/src/clock.rs +++ b/src/clock.rs @@ -26,14 +26,14 @@ impl<S> FromRequestParts<S> for RequestedAt where S: Send + Sync, { - type Rejection = <Extension<RequestedAt> as FromRequestParts<S>>::Rejection; + type Rejection = <Extension<Self> as FromRequestParts<S>>::Rejection; async fn from_request_parts(parts: &mut Parts, state: &S) -> Result<Self, Self::Rejection> { // This is purely for ergonomics: it allows `RequestedAt` to be extracted // without having to wrap it in `Extension<>`. Callers _can_ still do that, // but they aren't forced to. let Extension(requested_at) = - Extension::<RequestedAt>::from_request_parts(parts, state).await?; + Extension::<Self>::from_request_parts(parts, state).await?; Ok(requested_at) } |
