From fb48ea4169b5f55c1036b07148c8a21fdf22aa74 Mon Sep 17 00:00:00 2001 From: tottoto Date: Sat, 28 Dec 2024 10:50:21 +0900 Subject: [PATCH] Remove futures crate from dependency (#199) --- Cargo.toml | 1 - src/rt.rs | 2 +- src/sim.rs | 4 +--- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index cfeda6d..f9ef327 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,6 @@ members = ["examples/*"] [dependencies] bytes = "1.4" -futures = "0.3" indexmap = "1.9" rand = { version = "0.8.5", features = ["small_rng"] } rand_distr = "0.4.3" diff --git a/src/rt.rs b/src/rt.rs index 790f85a..2115a0e 100644 --- a/src/rt.rs +++ b/src/rt.rs @@ -1,8 +1,8 @@ +use std::future::Future; use std::mem; use std::pin::Pin; use std::sync::Arc; -use futures::Future; use tokio::runtime::Runtime; use tokio::task::JoinHandle; use tokio::task::LocalSet; diff --git a/src/sim.rs b/src/sim.rs index 5108e2e..948ce62 100644 --- a/src/sim.rs +++ b/src/sim.rs @@ -1052,9 +1052,7 @@ mod test { let how_many = 3; for i in 0..how_many { - sim.host(format!("host-{i}"), || async { - futures::future::pending().await - }) + sim.host(format!("host-{i}"), || async { future::pending().await }) } let mut ips = sim.lookup_many(regex::Regex::new(".*")?);