diff --git a/Cargo.toml b/Cargo.toml index c1f7a00..ba24fad 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,14 +2,14 @@ authors = ["imbolc"] categories = ["web-programming"] description = "Cookie manager middleware for tower." -edition = "2018" +edition = "2021" homepage = "https://github.com/imbolc/tower-cookies" keywords = ["axum", "cookie", "cookies", "tower"] license = "MIT" name = "tower-cookies" readme = "README.md" repository = "https://github.com/imbolc/tower-cookies" -version = "0.4.0" +version = "0.4.1" [features] default = ["axum-core"] diff --git a/src/lib.rs b/src/lib.rs index b9c0fc4..8b2dfcc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -179,7 +179,7 @@ impl Inner { .header .as_ref() .and_then(|h| std::str::from_utf8(h.as_bytes()).ok()) - .map(|s| jar_from_str(s)) + .map(jar_from_str) .unwrap_or_default(); self.jar = Some(jar); }