diff options
| author | mat <git@matdoes.dev> | 2023-10-26 22:26:07 -0500 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-10-26 22:26:14 -0500 |
| commit | 2803e9ef0d785538a23adceba44d45b162629979 (patch) | |
| tree | d64a61403a4f6955e0d8c2695d05498ba7cc2bac /azalea/src | |
| parent | ce81ae9cb30b62ee815d361f5762fb2f4a93670e (diff) | |
| download | azalea-drasl-2803e9ef0d785538a23adceba44d45b162629979.tar.xz | |
remove some more #![feature]s
Diffstat (limited to 'azalea/src')
| -rw-r--r-- | azalea/src/lib.rs | 1 | ||||
| -rw-r--r-- | azalea/src/swarm/mod.rs | 20 |
2 files changed, 11 insertions, 10 deletions
diff --git a/azalea/src/lib.rs b/azalea/src/lib.rs index bfa38fda..fa9d2e5a 100644 --- a/azalea/src/lib.rs +++ b/azalea/src/lib.rs @@ -1,5 +1,4 @@ #![doc = include_str!("../README.md")] -#![feature(async_closure)] #![allow(incomplete_features)] #![feature(type_changing_struct_update)] #![feature(lazy_cell)] diff --git a/azalea/src/swarm/mod.rs b/azalea/src/swarm/mod.rs index 6fae5d34..1f31db98 100644 --- a/azalea/src/swarm/mod.rs +++ b/azalea/src/swarm/mod.rs @@ -357,15 +357,17 @@ where } else { // otherwise, join all at once let swarm_borrow = &swarm_clone; - join_all(accounts.iter().zip(states).map( - async move |(account, state)| -> Result<(), JoinError> { - swarm_borrow - .clone() - .add_with_exponential_backoff(account, state) - .await; - Ok(()) - }, - )) + join_all( + accounts + .iter() + .zip(states) + .map(move |(account, state)| async { + swarm_borrow + .clone() + .add_with_exponential_backoff(account, state) + .await; + }), + ) .await; } }); |
