summaryrefslogtreecommitdiffstats
path: root/src/endpoint/configured.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-01-13 09:35:58 +0100
committerMatthias Beyer <mail@beyermatthias.de>2021-01-15 23:21:39 +0100
commita5c2a6b272988e778993554a2c247f9caf3574d7 (patch)
treeef3347400a0c366dcfe1dcd7eba9df7110b21de5 /src/endpoint/configured.rs
parent882a817dab7cd7ea2f8771f5ee9a5e99a1972a7c (diff)
Fix clippy: redundant closure found
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/endpoint/configured.rs')
-rw-r--r--src/endpoint/configured.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/endpoint/configured.rs b/src/endpoint/configured.rs
index c2ed0cf..92217e6 100644
--- a/src/endpoint/configured.rs
+++ b/src/endpoint/configured.rs
@@ -87,7 +87,7 @@ impl Endpoint {
match ep.endpoint_type() {
crate::config::EndpointType::Http => {
shiplift::Uri::from_str(ep.uri())
- .map(|uri| shiplift::Docker::host(uri))
+ .map(shiplift::Docker::host)
.with_context(|| anyhow!("Connecting to {}", ep.uri()))
.map_err(Error::from)
.map(|docker| {