diff --git a/ntex-session/Cargo.toml b/ntex-session/Cargo.toml index 62608a6a..d7741ea4 100644 --- a/ntex-session/Cargo.toml +++ b/ntex-session/Cargo.toml @@ -22,7 +22,7 @@ default = ["cookie-session"] cookie-session = ["cookie/secure", "ntex/cookie"] [dependencies] -ntex = "0.1.8" +ntex = "0.1.11" bytes = "0.5.4" cookie = "0.13.3" derive_more = "0.99.5" diff --git a/ntex-session/src/cookie.rs b/ntex-session/src/cookie.rs index ca1da63b..ad634900 100644 --- a/ntex-session/src/cookie.rs +++ b/ntex-session/src/cookie.rs @@ -362,17 +362,17 @@ where match Session::get_changes(&mut res) { (SessionStatus::Changed, Some(state)) | (SessionStatus::Renewed, Some(state)) => { - res.checked_expr::<_, _, Err>(|res| inner.set_cookie(res, state)) + res.checked_expr::(|res| inner.set_cookie(res, state)) } (SessionStatus::Unchanged, Some(state)) if prolong_expiration => { - res.checked_expr::<_, _, Err>(|res| inner.set_cookie(res, state)) + res.checked_expr::(|res| inner.set_cookie(res, state)) } (SessionStatus::Unchanged, _) => // set a new session cookie upon first request (new client) { if is_new { let state: HashMap = HashMap::new(); - res.checked_expr::<_, _, Err>(|res| { + res.checked_expr::(|res| { inner.set_cookie(res, state.into_iter()) }) } else {