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:
parent
65732197b8
commit
ca4ed0932e
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue