mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-07 00:00:12 +02:00
Upgrade cookie dependency to 0.18
… and replace uses of the deprecated Cookie::named fn.
This commit is contained in:
@@ -168,7 +168,7 @@ impl CookieJar {
|
||||
/// use axum::response::IntoResponse;
|
||||
///
|
||||
/// async fn handle(jar: CookieJar) -> CookieJar {
|
||||
/// jar.remove(Cookie::named("foo"))
|
||||
/// jar.remove(Cookie::from("foo"))
|
||||
/// }
|
||||
/// ```
|
||||
#[must_use]
|
||||
@@ -250,7 +250,7 @@ mod tests {
|
||||
}
|
||||
|
||||
async fn remove_cookie(jar: $jar) -> impl IntoResponse {
|
||||
jar.remove(Cookie::named("key"))
|
||||
jar.remove(Cookie::from("key"))
|
||||
}
|
||||
|
||||
let state = AppState {
|
||||
|
||||
@@ -216,7 +216,7 @@ impl<K> PrivateCookieJar<K> {
|
||||
/// use axum::response::IntoResponse;
|
||||
///
|
||||
/// async fn handle(jar: PrivateCookieJar) -> PrivateCookieJar {
|
||||
/// jar.remove(Cookie::named("foo"))
|
||||
/// jar.remove(Cookie::from("foo"))
|
||||
/// }
|
||||
/// ```
|
||||
#[must_use]
|
||||
|
||||
@@ -234,7 +234,7 @@ impl<K> SignedCookieJar<K> {
|
||||
/// use axum::response::IntoResponse;
|
||||
///
|
||||
/// async fn handle(jar: SignedCookieJar) -> SignedCookieJar {
|
||||
/// jar.remove(Cookie::named("foo"))
|
||||
/// jar.remove(Cookie::from("foo"))
|
||||
/// }
|
||||
/// ```
|
||||
#[must_use]
|
||||
|
||||
Reference in New Issue
Block a user