Skip to content

Commit

Permalink
local-channel: drop futures-util by using future::poll_fn from std (#490
Browse files Browse the repository at this point in the history
)
  • Loading branch information
paolobarbolini committed Sep 17, 2023
1 parent 14272a1 commit bfeb4cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion local-channel/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
2 changes: 1 addition & 1 deletion local-channel/src/mpsc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ use alloc::{collections::VecDeque, rc::Rc};
use core::{
cell::RefCell,
fmt,
future::poll_fn,
pin::Pin,
task::{Context, Poll},
};
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.
Expand Down

0 comments on commit bfeb4cd

Please sign in to comment.