1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2025-02-01 03:42:21 +00:00

made Session::get_session public

This commit is contained in:
dowwie 2019-06-13 08:59:59 -04:00
parent 65732197b8
commit ca4ed0932e

View file

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