Skip to content

Commit

Permalink
chore: remove redundant imports
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed Feb 19, 2024
1 parent 5414e26 commit a5f5e31
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 14 deletions.
6 changes: 3 additions & 3 deletions actix-cors/src/builder.rs
Original file line number Diff line number Diff line change
@@ -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::{
Expand Down Expand Up @@ -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,
};
Expand Down
7 changes: 1 addition & 6 deletions actix-cors/src/inner.rs
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 0 additions & 2 deletions actix-session/src/storage/redis_actor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
1 change: 0 additions & 1 deletion actix-session/src/storage/redis_rs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion actix-web-httpauth/src/headers/authorization/errors.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::{convert::From, error::Error, fmt, str};
use std::{error::Error, fmt, str};

use actix_web::http::header;

Expand Down
1 change: 0 additions & 1 deletion actix-web-httpauth/src/middleware.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,6 @@ where
mod tests {
use actix_service::into_service;
use actix_web::{
dev::Service,
error::{self, ErrorForbidden},
http::StatusCode,
test::TestRequest,
Expand Down

0 comments on commit a5f5e31

Please sign in to comment.