Skip to content

Commit

Permalink
Remove futures crate from dependency (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored Dec 28, 2024
1 parent dbf1936 commit fb48ea4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/rt.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 1 addition & 3 deletions src/sim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(".*")?);
Expand Down

0 comments on commit fb48ea4

Please sign in to comment.