diff --git a/actix-cors/src/builder.rs b/actix-cors/src/builder.rs index 5ff087256..b1193de04 100644 --- a/actix-cors/src/builder.rs +++ b/actix-cors/src/builder.rs @@ -1,4 +1,4 @@ -use std::{collections::HashSet, iter::FromIterator, rc::Rc}; +use std::{collections::HashSet, rc::Rc}; use actix_utils::future::{self, Ready}; use actix_web::{ @@ -614,8 +614,8 @@ mod test { use actix_web::{ body, - dev::{fn_service, Transform}, - http::{header::HeaderName, StatusCode}, + dev::fn_service, + http::StatusCode, test::{self, TestRequest}, HttpResponse, }; diff --git a/actix-cors/src/inner.rs b/actix-cors/src/inner.rs index 786849acb..93ab7c77d 100644 --- a/actix-cors/src/inner.rs +++ b/actix-cors/src/inner.rs @@ -1,9 +1,4 @@ -use std::{ - collections::HashSet, - convert::{TryFrom, TryInto}, - fmt, - rc::Rc, -}; +use std::{collections::HashSet, fmt, rc::Rc}; use actix_web::{ dev::RequestHead, diff --git a/actix-session/src/storage/redis_actor.rs b/actix-session/src/storage/redis_actor.rs index ae41a42b9..591b09a96 100644 --- a/actix-session/src/storage/redis_actor.rs +++ b/actix-session/src/storage/redis_actor.rs @@ -277,8 +277,6 @@ impl SessionStore for RedisActorSessionStore { mod tests { use std::collections::HashMap; - use actix_web::cookie::time::Duration; - use super::*; use crate::test_helpers::acceptance_test_suite; diff --git a/actix-session/src/storage/redis_rs.rs b/actix-session/src/storage/redis_rs.rs index b3fde3943..e27ba2a23 100644 --- a/actix-session/src/storage/redis_rs.rs +++ b/actix-session/src/storage/redis_rs.rs @@ -286,7 +286,6 @@ mod tests { use std::collections::HashMap; use actix_web::cookie::time; - use redis::AsyncCommands; use super::*; use crate::test_helpers::acceptance_test_suite; diff --git a/actix-web-httpauth/src/headers/authorization/errors.rs b/actix-web-httpauth/src/headers/authorization/errors.rs index 465156897..462e09805 100644 --- a/actix-web-httpauth/src/headers/authorization/errors.rs +++ b/actix-web-httpauth/src/headers/authorization/errors.rs @@ -1,4 +1,4 @@ -use std::{convert::From, error::Error, fmt, str}; +use std::{error::Error, fmt, str}; use actix_web::http::header; diff --git a/actix-web-httpauth/src/middleware.rs b/actix-web-httpauth/src/middleware.rs index 4fd96a735..91cd6068e 100644 --- a/actix-web-httpauth/src/middleware.rs +++ b/actix-web-httpauth/src/middleware.rs @@ -243,7 +243,6 @@ where mod tests { use actix_service::into_service; use actix_web::{ - dev::Service, error::{self, ErrorForbidden}, http::StatusCode, test::TestRequest,