From 3365724dd2dbaa16ac589acaa8fe13f6b401c9fa Mon Sep 17 00:00:00 2001 From: Brian Balser Date: Sat, 26 Aug 2023 19:18:16 -0400 Subject: [PATCH] make clippy happy --- iot_config/src/client/mod.rs | 2 +- mobile_config/src/client/gateway_client.rs | 2 +- task_manager/src/lib.rs | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/iot_config/src/client/mod.rs b/iot_config/src/client/mod.rs index 4c7f610a6..c4830903b 100644 --- a/iot_config/src/client/mod.rs +++ b/iot_config/src/client/mod.rs @@ -143,7 +143,7 @@ impl gateway_info::GatewayInfoResolver for Client { .filter_map(|resp| async move { resp.ok() }) .map(move |resp| (resp, pubkey.clone())) .filter_map(|(resp, pubkey)| async move { resp.verify(&pubkey).map(|_| resp).ok() }) - .flat_map(|resp| stream::iter(resp.gateways.into_iter())) + .flat_map(|resp| stream::iter(resp.gateways)) .map(gateway_info::GatewayInfo::from) .boxed(); diff --git a/mobile_config/src/client/gateway_client.rs b/mobile_config/src/client/gateway_client.rs index 9051f7e14..89117b779 100644 --- a/mobile_config/src/client/gateway_client.rs +++ b/mobile_config/src/client/gateway_client.rs @@ -98,7 +98,7 @@ impl gateway_info::GatewayInfoResolver for GatewayClient { Err(_) => None, } }) - .flat_map(|res| stream::iter(res.gateways.into_iter())) + .flat_map(|res| stream::iter(res.gateways)) .map(gateway_info::GatewayInfo::from) .boxed(); diff --git a/task_manager/src/lib.rs b/task_manager/src/lib.rs index be1b9f684..3eae53a35 100644 --- a/task_manager/src/lib.rs +++ b/task_manager/src/lib.rs @@ -134,6 +134,7 @@ fn start_futures( .collect() } +#[allow(clippy::manual_try_fold)] async fn stop_all(futures: Vec) -> anyhow::Result<()> { futures::stream::iter(futures.into_iter().rev()) .fold(Ok(()), |last_result, local| async move {