diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-08-12 17:00:12 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-08-12 17:00:20 +0200 |
commit | 853e32556cf348ca0de506623e3574ab0739cf81 (patch) | |
tree | 2ecb0fd00e97b4716dfcd72ce9a1101bf9ccf1b2 /src/commands/endpoint.rs | |
parent | 68b770650cb602140d4f0559556ce15c24c08cce (diff) |
Fix clippy: Replace map-collect-to-result with try_for_each()
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/commands/endpoint.rs')
-rw-r--r-- | src/commands/endpoint.rs | 3 |
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 |