From c32b19fe2dcc58bde35f8068d5cf6f68d969654e Mon Sep 17 00:00:00 2001 From: David Pedersen Date: Sun, 26 Jun 2022 20:33:36 +0200 Subject: [PATCH] fix docs --- axum-extra/src/extract/cached.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/axum-extra/src/extract/cached.rs b/axum-extra/src/extract/cached.rs index 70fd4865ee..7bf99807ab 100644 --- a/axum-extra/src/extract/cached.rs +++ b/axum-extra/src/extract/cached.rs @@ -30,13 +30,13 @@ use std::ops::{Deref, DerefMut}; /// struct Session { /* ... */ } /// /// #[async_trait] -/// impl FromRequest for Session +/// impl FromRequest for Session /// where /// B: Send, /// { /// type Rejection = (StatusCode, String); /// -/// async fn from_request(req: &mut RequestParts) -> Result { +/// async fn from_request(req: &mut RequestParts) -> Result { /// // load session... /// # unimplemented!() /// } @@ -45,13 +45,13 @@ use std::ops::{Deref, DerefMut}; /// struct CurrentUser { /* ... */ } /// /// #[async_trait] -/// impl FromRequest for CurrentUser +/// impl FromRequest for CurrentUser /// where /// B: Send, /// { /// type Rejection = Response; /// -/// async fn from_request(req: &mut RequestParts) -> Result { +/// async fn from_request(req: &mut RequestParts) -> Result { /// // loading a `CurrentUser` requires first loading the `Session` /// // /// // by using `Cached` we avoid extracting the session more than