diff --git a/axum-extra/src/extract/cookie.rs b/axum-extra/src/extract/cookie.rs index e16f084f..b638da49 100644 --- a/axum-extra/src/extract/cookie.rs +++ b/axum-extra/src/extract/cookie.rs @@ -112,7 +112,7 @@ impl CookieJar { /// use axum_extra::extract::cookie::CookieJar; /// use axum::response::IntoResponse; /// - /// async fn handle(mut jar: CookieJar) { + /// async fn handle(jar: CookieJar) { /// let value: Option = jar /// .get("foo") /// .map(|cookie| cookie.value().to_owned()); @@ -130,7 +130,7 @@ impl CookieJar { /// use axum_extra::extract::cookie::{CookieJar, Cookie}; /// use axum::response::IntoResponse; /// - /// async fn handle(mut jar: CookieJar) -> impl IntoResponse { + /// async fn handle(jar: CookieJar) -> impl IntoResponse { /// jar.remove(Cookie::named("foo")) /// } /// ``` @@ -150,7 +150,7 @@ impl CookieJar { /// use axum_extra::extract::cookie::{CookieJar, Cookie}; /// use axum::response::IntoResponse; /// - /// async fn handle(mut jar: CookieJar) -> impl IntoResponse { + /// async fn handle(jar: CookieJar) -> impl IntoResponse { /// jar.add(Cookie::new("foo", "bar")) /// } /// ``` @@ -303,7 +303,7 @@ impl SignedCookieJar { /// use axum_extra::extract::cookie::SignedCookieJar; /// use axum::response::IntoResponse; /// - /// async fn handle(mut jar: SignedCookieJar) { + /// async fn handle(jar: SignedCookieJar) { /// let value: Option = jar /// .get("foo") /// .map(|cookie| cookie.value().to_owned()); @@ -321,7 +321,7 @@ impl SignedCookieJar { /// use axum_extra::extract::cookie::{SignedCookieJar, Cookie}; /// use axum::response::IntoResponse; /// - /// async fn handle(mut jar: SignedCookieJar) -> impl IntoResponse { + /// async fn handle(jar: SignedCookieJar) -> impl IntoResponse { /// jar.remove(Cookie::named("foo")) /// } /// ``` @@ -341,7 +341,7 @@ impl SignedCookieJar { /// use axum_extra::extract::cookie::{SignedCookieJar, Cookie}; /// use axum::response::IntoResponse; /// - /// async fn handle(mut jar: SignedCookieJar) -> impl IntoResponse { + /// async fn handle(jar: SignedCookieJar) -> impl IntoResponse { /// jar.add(Cookie::new("foo", "bar")) /// } /// ```