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:
parent
65732197b8
commit
ca4ed0932e
@ -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>>>() {
|
if let Some(s_impl) = extensions.get::<Rc<RefCell<SessionInner>>>() {
|
||||||
return Session(Rc::clone(&s_impl));
|
return Session(Rc::clone(&s_impl));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user