1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-01-22 23:05:56 +01: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));
}