1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-28 21:10:37 +02:00

actix-ioframe: Minimize futures-* dependencies

This commit is contained in:
Yuki Okushi
2020-03-12 04:23:04 +09:00
parent f955e49930
commit dd3bec83bf
5 changed files with 8 additions and 6 deletions

View File

@ -4,7 +4,7 @@ use std::task::{Context, Poll};
use actix_codec::{AsyncRead, AsyncWrite, Decoder, Encoder, Framed};
use actix_utils::mpsc::Receiver;
use futures::Stream;
use futures_core::stream::Stream;
pub struct Connect<Io, Codec>
where
@ -90,7 +90,7 @@ where
}
}
impl<Io, St, Codec, Out> futures::Sink<<Codec as Encoder>::Item>
impl<Io, St, Codec, Out> futures_sink::Sink<<Codec as Encoder>::Item>
for ConnectResult<Io, St, Codec, Out>
where
Io: AsyncRead + AsyncWrite,

View File

@ -5,7 +5,7 @@ use std::task::{Context, Poll};
use actix_codec::{AsyncRead, AsyncWrite, Decoder, Encoder, Framed};
use actix_service::Service;
use actix_utils::mpsc;
use futures::Stream;
use futures_core::stream::Stream;
use pin_project::pin_project;
use log::debug;

View File

@ -7,7 +7,7 @@ use std::task::{Context, Poll};
use actix_codec::{AsyncRead, AsyncWrite, Decoder, Encoder, Framed};
use actix_service::{IntoService, IntoServiceFactory, Service, ServiceFactory};
use either::Either;
use futures::{ready, Stream};
use futures_core::{ready, stream::Stream};
use pin_project::project;
use crate::connect::{Connect, ConnectResult};