diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2024-09-13 01:46:53 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2024-09-13 02:42:27 -0400 |
| commit | 43a20d43b09876082e54b550087f166aabdab82d (patch) | |
| tree | 1c9518d45eed50b3db93a9f0df71c23f5b06f039 /src/clock.rs | |
| parent | 3193a30ebcf6bafdeaf463eda0e7e82082dfe4b5 (diff) | |
Suggested fixes from Clippy, via nursery and pedantic sets.
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) } |
