From 43a20d43b09876082e54b550087f166aabdab82d Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Fri, 13 Sep 2024 01:46:53 -0400 Subject: Suggested fixes from Clippy, via nursery and pedantic sets. --- src/clock.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/clock.rs') 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 FromRequestParts for RequestedAt where S: Send + Sync, { - type Rejection = as FromRequestParts>::Rejection; + type Rejection = as FromRequestParts>::Rejection; async fn from_request_parts(parts: &mut Parts, state: &S) -> Result { // 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::::from_request_parts(parts, state).await?; + Extension::::from_request_parts(parts, state).await?; Ok(requested_at) } -- cgit v1.2.3