1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-23 15:51:06 +01:00

chore: remove redundant imports

This commit is contained in:
Rob Ede 2024-02-19 16:18:17 +00:00
parent 5414e2655b
commit a5f5e31a82
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
6 changed files with 5 additions and 14 deletions

View File

@ -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_utils::future::{self, Ready};
use actix_web::{ use actix_web::{
@ -614,8 +614,8 @@ mod test {
use actix_web::{ use actix_web::{
body, body,
dev::{fn_service, Transform}, dev::fn_service,
http::{header::HeaderName, StatusCode}, http::StatusCode,
test::{self, TestRequest}, test::{self, TestRequest},
HttpResponse, HttpResponse,
}; };

View File

@ -1,9 +1,4 @@
use std::{ use std::{collections::HashSet, fmt, rc::Rc};
collections::HashSet,
convert::{TryFrom, TryInto},
fmt,
rc::Rc,
};
use actix_web::{ use actix_web::{
dev::RequestHead, dev::RequestHead,

View File

@ -277,8 +277,6 @@ impl SessionStore for RedisActorSessionStore {
mod tests { mod tests {
use std::collections::HashMap; use std::collections::HashMap;
use actix_web::cookie::time::Duration;
use super::*; use super::*;
use crate::test_helpers::acceptance_test_suite; use crate::test_helpers::acceptance_test_suite;

View File

@ -286,7 +286,6 @@ mod tests {
use std::collections::HashMap; use std::collections::HashMap;
use actix_web::cookie::time; use actix_web::cookie::time;
use redis::AsyncCommands;
use super::*; use super::*;
use crate::test_helpers::acceptance_test_suite; use crate::test_helpers::acceptance_test_suite;

View File

@ -1,4 +1,4 @@
use std::{convert::From, error::Error, fmt, str}; use std::{error::Error, fmt, str};
use actix_web::http::header; use actix_web::http::header;

View File

@ -243,7 +243,6 @@ where
mod tests { mod tests {
use actix_service::into_service; use actix_service::into_service;
use actix_web::{ use actix_web::{
dev::Service,
error::{self, ErrorForbidden}, error::{self, ErrorForbidden},
http::StatusCode, http::StatusCode,
test::TestRequest, test::TestRequest,