From 313396d9b50a44ef87492cf40e2b7a0c248d8549 Mon Sep 17 00:00:00 2001 From: Alex Whitney Date: Wed, 28 Feb 2018 19:35:26 +0000 Subject: [PATCH] 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(()) }