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 40b1084 commit 0f71fd5
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 11 deletions.
4 changes: 1 addition & 3 deletions actix-service/src/apply.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
1 change: 0 additions & 1 deletion actix-service/src/fn_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
4 changes: 1 addition & 3 deletions actix-service/src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 1 addition & 3 deletions actix-service/src/map_err.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
1 change: 0 additions & 1 deletion actix-service/src/transform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0f71fd5

Please sign in to comment.