1
0
mirror of https://github.com/fafhrd91/actix-net synced 2024-11-24 01:11:07 +01:00

chore: remove redundant imports

This commit is contained in:
Rob Ede 2024-02-19 12:19:08 +00:00
parent 40b10847df
commit 0f71fd5a7a
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
5 changed files with 3 additions and 11 deletions

View File

@ -208,15 +208,13 @@ where
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use core::task::Poll;
use futures_util::future::lazy; use futures_util::future::lazy;
use super::*; use super::*;
use crate::{ use crate::{
ok, ok,
pipeline::{pipeline, pipeline_factory}, pipeline::{pipeline, pipeline_factory},
Ready, Service, ServiceFactory, Ready,
}; };
#[derive(Clone)] #[derive(Clone)]

View File

@ -351,7 +351,6 @@ mod tests {
use futures_util::future::lazy; use futures_util::future::lazy;
use super::*; use super::*;
use crate::{ok, Service, ServiceFactory};
#[actix_rt::test] #[actix_rt::test]
async fn test_fn_service() { async fn test_fn_service() {

View File

@ -202,9 +202,7 @@ mod tests {
use futures_util::future::lazy; use futures_util::future::lazy;
use super::*; use super::*;
use crate::{ use crate::{ok, IntoServiceFactory, Ready, ServiceExt, ServiceFactoryExt};
ok, IntoServiceFactory, Ready, Service, ServiceExt, ServiceFactory, ServiceFactoryExt,
};
struct Srv; struct Srv;

View File

@ -205,9 +205,7 @@ mod tests {
use futures_util::future::lazy; use futures_util::future::lazy;
use super::*; use super::*;
use crate::{ use crate::{err, ok, IntoServiceFactory, Ready, ServiceExt, ServiceFactoryExt};
err, ok, IntoServiceFactory, Ready, Service, ServiceExt, ServiceFactory, ServiceFactoryExt,
};
struct Srv; struct Srv;

View File

@ -226,7 +226,6 @@ mod tests {
use actix_utils::future::{ready, Ready}; use actix_utils::future::{ready, Ready};
use super::*; use super::*;
use crate::Service;
// pseudo-doctest for Transform trait // pseudo-doctest for Transform trait
pub struct TimeoutTransform { pub struct TimeoutTransform {