Fix PrivateCookieJar documentation example comments (#3053)

This commit is contained in:
Claas 2024-11-29 00:00:14 +01:00 committed by GitHub
parent c7aa6454e7
commit 2eaed0badc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()