From 2803e9ef0d785538a23adceba44d45b162629979 Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 26 Oct 2023 22:26:07 -0500 Subject: remove some more #![feature]s --- azalea/src/lib.rs | 1 - azalea/src/swarm/mod.rs | 20 +++++++++++--------- 2 files changed, 11 insertions(+), 10 deletions(-) (limited to 'azalea/src') 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; } }); -- cgit v1.2.3