1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-12-26 10:00:34 +00:00

fix service tests

This commit is contained in:
Nikolay Kim 2018-12-12 18:56:39 -08:00
parent bf9bd97173
commit cd5435e5ee
6 changed files with 7 additions and 7 deletions

View file

@ -219,7 +219,7 @@ mod tests {
use std::rc::Rc;
use super::*;
use crate::{NewService, Service};
use crate::{NewService, Service, ServiceExt};
struct Srv1(Rc<Cell<usize>>);
impl Service<&'static str> for Srv1 {

View file

@ -171,7 +171,7 @@ mod tests {
use futures::future::{ok, FutureResult};
use futures::{Async, Future, Poll};
use crate::{IntoNewService, IntoService, NewService, Service};
use crate::{IntoNewService, IntoService, NewService, Service, ServiceExt};
#[derive(Clone)]
struct Srv;

View file

@ -159,7 +159,7 @@ mod tests {
use futures::future::{err, FutureResult};
use super::*;
use crate::{IntoNewService, NewService, Service};
use crate::{IntoNewService, NewService, Service, ServiceExt};
struct Srv;
impl Service<()> for Srv {

View file

@ -189,7 +189,7 @@ mod tests {
use futures::future::{ok, FutureResult};
use super::*;
use crate::{IntoNewService, Service};
use crate::{IntoNewService, Service, ServiceExt};
struct Srv;
impl Service<()> for Srv {

View file

@ -190,7 +190,7 @@ mod tests {
use futures::future::{err, FutureResult};
use super::*;
use crate::{IntoNewService, NewService, Service};
use crate::{IntoNewService, NewService, Service, ServiceExt};
struct Srv;

View file

@ -223,11 +223,11 @@ where
#[cfg(test)]
mod tests {
use futures::future::{err, ok, FutureResult};
use futures::{Async, Poll};
use futures::{Async, Future, Poll};
use std::cell::Cell;
use std::rc::Rc;
use super::*;
use crate::{IntoNewService, NewService, Service, ServiceExt};
#[derive(Clone)]
struct Srv1(Rc<Cell<usize>>);