1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2025-03-28 05:45:27 +00:00

reverting change to get_session due to side effects

This commit is contained in:
dowwie 2019-06-13 09:19:03 -04:00
parent 73ae801a13
commit 32a66a99bf

View file

@ -197,7 +197,7 @@ impl Session {
}
}
pub fn get_session(extensions: &mut Extensions) -> Session {
fn get_session(extensions: &mut Extensions) -> Session {
if let Some(s_impl) = extensions.get::<Rc<RefCell<SessionInner>>>() {
return Session(Rc::clone(&s_impl));
}