From 313396d9b50a44ef87492cf40e2b7a0c248d8549 Mon Sep 17 00:00:00 2001 From: Alex Whitney Date: Wed, 28 Feb 2018 19:35:26 +0000 Subject: [PATCH 1/2] fix session mut borrow lifetime --- src/middleware/session.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middleware/session.rs b/src/middleware/session.rs index 7cdb7e093..e08ce03f2 100644 --- a/src/middleware/session.rs +++ b/src/middleware/session.rs @@ -86,7 +86,7 @@ impl<'a> Session<'a> { } /// Set a `value` from the session. - pub fn set(&'a mut self, key: &str, value: T) -> Result<()> { + pub fn set(&mut self, key: &str, value: T) -> Result<()> { self.0.set(key, serde_json::to_string(&value)?); Ok(()) } From bb68f9dd905e84c262fe849ba61915328cbf09e8 Mon Sep 17 00:00:00 2001 From: Alex Whitney Date: Wed, 28 Feb 2018 19:51:14 +0000 Subject: [PATCH 2/2] add session borrow fix to changes --- CHANGES.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index f2deadfdb..f056ce6ed 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,10 @@ # Changes +## 0.4.1 (2018-03-xx) + +* Fix Session mutable borrow lifetime + + ## 0.4.0 (2018-02-28) * Actix 0.5 compatibility