Skip to content

Commit fb48ea4

Browse files
authored
Remove futures crate from dependency (#199)
1 parent dbf1936 commit fb48ea4

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ members = ["examples/*"]
2121

2222
[dependencies]
2323
bytes = "1.4"
24-
futures = "0.3"
2524
indexmap = "1.9"
2625
rand = { version = "0.8.5", features = ["small_rng"] }
2726
rand_distr = "0.4.3"

src/rt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
use std::future::Future;
12
use std::mem;
23
use std::pin::Pin;
34
use std::sync::Arc;
45

5-
use futures::Future;
66
use tokio::runtime::Runtime;
77
use tokio::task::JoinHandle;
88
use tokio::task::LocalSet;

src/sim.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,9 +1052,7 @@ mod test {
10521052

10531053
let how_many = 3;
10541054
for i in 0..how_many {
1055-
sim.host(format!("host-{i}"), || async {
1056-
futures::future::pending().await
1057-
})
1055+
sim.host(format!("host-{i}"), || async { future::pending().await })
10581056
}
10591057

10601058
let mut ips = sim.lookup_many(regex::Regex::new(".*")?);

0 commit comments

Comments
 (0)