mirror of
https://github.com/fafhrd91/actix-net
synced 2024-11-23 20:51:06 +01:00
local-channel: drop futures-util by using future::poll_fn from std (#490)
This commit is contained in:
parent
14272a1762
commit
bfeb4cd9e7
@ -15,8 +15,8 @@ rust-version.workspace = true
|
||||
[dependencies]
|
||||
futures-core = "0.3.17"
|
||||
futures-sink = "0.3.17"
|
||||
futures-util = { version = "0.3.17", default-features = false }
|
||||
local-waker = "0.1"
|
||||
|
||||
[dev-dependencies]
|
||||
futures-util = { version = "0.3.17", default-features = false }
|
||||
tokio = { version = "1.23.1", features = ["rt", "macros"] }
|
||||
|
@ -4,6 +4,7 @@ use alloc::{collections::VecDeque, rc::Rc};
|
||||
use core::{
|
||||
cell::RefCell,
|
||||
fmt,
|
||||
future::poll_fn,
|
||||
pin::Pin,
|
||||
task::{Context, Poll},
|
||||
};
|
||||
@ -11,7 +12,6 @@ use std::error::Error;
|
||||
|
||||
use futures_core::stream::Stream;
|
||||
use futures_sink::Sink;
|
||||
use futures_util::future::poll_fn;
|
||||
use local_waker::LocalWaker;
|
||||
|
||||
/// Creates a unbounded in-memory channel with buffered storage.
|
||||
|
Loading…
Reference in New Issue
Block a user