1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-26 10:27:42 +02:00

fix RequestSession impl for HttpRequest

This commit is contained in:
Nikolay Kim
2017-12-28 11:43:45 -08:00
parent d80a0c9f94
commit 783e19c1bf
2 changed files with 3 additions and 2 deletions

View File

@ -41,7 +41,7 @@ pub trait RequestSession {
fn session(&mut self) -> Session;
}
impl RequestSession for HttpRequest {
impl<S> RequestSession for HttpRequest<S> {
fn session(&mut self) -> Session {
if let Some(s_impl) = self.extensions().get_mut::<Arc<SessionImplBox>>() {