mirror of
https://github.com/tokio-rs/axum.git
synced 2024-12-11 17:30:44 +01:00
Fix PrivateCookieJar documentation example comments (#3053)
This commit is contained in:
parent
c7aa6454e7
commit
2eaed0badc
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue