summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-08-12 17:00:12 +0200
committerMatthias Beyer <mail@beyermatthias.de>2021-08-12 17:00:20 +0200
commit853e32556cf348ca0de506623e3574ab0739cf81 (patch)
tree2ecb0fd00e97b4716dfcd72ce9a1101bf9ccf1b2
parent68b770650cb602140d4f0559556ce15c24c08cce (diff)
Fix clippy: Replace map-collect-to-result with try_for_each()
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--src/commands/endpoint.rs3
1 files changed, 1 insertions, 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<EndpointName>,
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<EndpointName>,
}
})
})
- .collect::<Result<()>>()
}
/// Helper function to connect to all endpoints from the configuration, that appear (by name) in