From 853e32556cf348ca0de506623e3574ab0739cf81 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Thu, 12 Aug 2021 17:00:12 +0200 Subject: Fix clippy: Replace map-collect-to-result with try_for_each() Signed-off-by: Matthias Beyer --- src/commands/endpoint.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/commands/endpoint.rs b/src/commands/endpoint.rs index cd65887..0b6e517 100644 --- a/src/commands/endpoint.rs +++ b/src/commands/endpoint.rs @@ -494,7 +494,7 @@ async fn images_present(endpoint_names: Vec, ep_names_to_images .iter() - .map(|(ep_name, ep_imgs)| { + .try_for_each(|(ep_name, ep_imgs)| { config.docker() .images() .iter() @@ -507,7 +507,6 @@ async fn images_present(endpoint_names: Vec, } }) }) - .collect::>() } /// Helper function to connect to all endpoints from the configuration, that appear (by name) in -- cgit v1.2.3