From a3fbb8ae6736632f904da487a6cbfe71820d2cdf Mon Sep 17 00:00:00 2001 From: David Caldwell Date: Sat, 16 Nov 2024 15:43:04 -0800 Subject: [PATCH] Update to work with Rocket 0.5.1 --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 60c1f3e..d5a62e3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -126,7 +126,7 @@ where { type Error = (); - async fn from_request(request: &'r Request<'_>) -> Outcome { + async fn from_request(request: &'r Request<'_>) -> Outcome { let store = request.guard::<&State>>().await.unwrap(); Outcome::Success(Session { id: request.local_cache(|| { @@ -321,9 +321,9 @@ where if !session.0.is_empty() { response.adjoin_header( - Cookie::build(self.config.cookie_name.clone(), session.to_string()) + Cookie::build((self.config.cookie_name.clone(), session.to_string())) .path("/") - .finish(), + .build(), ); } } -- 2.36.2