From 3e17ad9a4ef942440210f0b0e5c9db43bcecc319 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Steinbrink?= Date: Tue, 11 Feb 2020 16:25:11 +0100 Subject: [PATCH 1/2] Remove unneeded single path import Imports with a single path component are useless. --- actix-web-httpauth/src/headers/authorization/scheme/basic.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/actix-web-httpauth/src/headers/authorization/scheme/basic.rs b/actix-web-httpauth/src/headers/authorization/scheme/basic.rs index 107217ba3..76b2ec451 100644 --- a/actix-web-httpauth/src/headers/authorization/scheme/basic.rs +++ b/actix-web-httpauth/src/headers/authorization/scheme/basic.rs @@ -5,7 +5,6 @@ use std::str; use actix_web::http::header::{ HeaderValue, IntoHeaderValue, InvalidHeaderValue, }; -use base64; use bytes::{BufMut, BytesMut}; use crate::headers::authorization::errors::ParseError; From d84915741139523c4dbc8e7a6265c67b8dc9c976 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Steinbrink?= Date: Mon, 10 Feb 2020 15:26:37 +0100 Subject: [PATCH 2/2] Update Session doc to refer to UserSession instead of RequestSession --- actix-session/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/actix-session/src/lib.rs b/actix-session/src/lib.rs index b6e5dd331..c75ff0968 100644 --- a/actix-session/src/lib.rs +++ b/actix-session/src/lib.rs @@ -62,8 +62,9 @@ pub use crate::cookie::CookieSession; /// The high-level interface you use to modify session data. /// /// Session object could be obtained with -/// [`RequestSession::session`](trait.RequestSession.html#tymethod.session) -/// method. `RequestSession` trait is implemented for `HttpRequest`. +/// [`UserSession::get_session`](trait.UserSession.html#tymethod.get_session) +/// method. The `UserSession` trait is implemented for `HttpRequest`, `ServiceRequest`, and +/// `RequestHead`. /// /// ```rust /// use actix_session::Session;