mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-22 00:00:17 +02:00
Fix PrivateCookieJar documentation example comments (#3053)
This commit is contained in:
@@ -48,11 +48,11 @@ use std::{convert::Infallible, fmt, marker::PhantomData};
|
||||
/// // our application state
|
||||
/// #[derive(Clone)]
|
||||
/// struct AppState {
|
||||
/// // that holds the key used to sign cookies
|
||||
/// // that holds the key used to encrypt cookies
|
||||
/// key: Key,
|
||||
/// }
|
||||
///
|
||||
/// // this impl tells `SignedCookieJar` how to access the key from our state
|
||||
/// // this impl tells `PrivateCookieJar` how to access the key from our state
|
||||
/// impl FromRef<AppState> for Key {
|
||||
/// fn from_ref(state: &AppState) -> Self {
|
||||
/// state.key.clone()
|
||||
|
||||
Reference in New Issue
Block a user