From 0f71fd5a7a7aa6dd81106d65995707455f4a3e23 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Mon, 19 Feb 2024 12:19:08 +0000 Subject: [PATCH] chore: remove redundant imports --- actix-service/src/apply.rs | 4 +--- actix-service/src/fn_service.rs | 1 - actix-service/src/map.rs | 4 +--- actix-service/src/map_err.rs | 4 +--- actix-service/src/transform.rs | 1 - 5 files changed, 3 insertions(+), 11 deletions(-) diff --git a/actix-service/src/apply.rs b/actix-service/src/apply.rs index d33bdcd8..8c7097c0 100644 --- a/actix-service/src/apply.rs +++ b/actix-service/src/apply.rs @@ -208,15 +208,13 @@ where #[cfg(test)] mod tests { - use core::task::Poll; - use futures_util::future::lazy; use super::*; use crate::{ ok, pipeline::{pipeline, pipeline_factory}, - Ready, Service, ServiceFactory, + Ready, }; #[derive(Clone)] diff --git a/actix-service/src/fn_service.rs b/actix-service/src/fn_service.rs index 2dac8697..c0f8a9c3 100644 --- a/actix-service/src/fn_service.rs +++ b/actix-service/src/fn_service.rs @@ -351,7 +351,6 @@ mod tests { use futures_util::future::lazy; use super::*; - use crate::{ok, Service, ServiceFactory}; #[actix_rt::test] async fn test_fn_service() { diff --git a/actix-service/src/map.rs b/actix-service/src/map.rs index 49ddd9fe..97aec16e 100644 --- a/actix-service/src/map.rs +++ b/actix-service/src/map.rs @@ -202,9 +202,7 @@ mod tests { use futures_util::future::lazy; use super::*; - use crate::{ - ok, IntoServiceFactory, Ready, Service, ServiceExt, ServiceFactory, ServiceFactoryExt, - }; + use crate::{ok, IntoServiceFactory, Ready, ServiceExt, ServiceFactoryExt}; struct Srv; diff --git a/actix-service/src/map_err.rs b/actix-service/src/map_err.rs index 780a64c7..da77b242 100644 --- a/actix-service/src/map_err.rs +++ b/actix-service/src/map_err.rs @@ -205,9 +205,7 @@ mod tests { use futures_util::future::lazy; use super::*; - use crate::{ - err, ok, IntoServiceFactory, Ready, Service, ServiceExt, ServiceFactory, ServiceFactoryExt, - }; + use crate::{err, ok, IntoServiceFactory, Ready, ServiceExt, ServiceFactoryExt}; struct Srv; diff --git a/actix-service/src/transform.rs b/actix-service/src/transform.rs index e39f3058..e29d2b2b 100644 --- a/actix-service/src/transform.rs +++ b/actix-service/src/transform.rs @@ -226,7 +226,6 @@ mod tests { use actix_utils::future::{ready, Ready}; use super::*; - use crate::Service; // pseudo-doctest for Transform trait pub struct TimeoutTransform {