summaryrefslogtreecommitdiffstats
path: root/src/builder.rs
diff options
context:
space:
mode:
authorColvin Wellborn <39858617+colvin@users.noreply.github.com>2020-03-19 00:05:52 -0400
committerGitHub <noreply@github.com>2020-03-19 00:05:52 -0400
commitd3a8d575264960bdffc420f0728876e2979460a9 (patch)
tree776d63b3f00a301c95b31ad2815e3ca82b3d54c4 /src/builder.rs
parent4c76501fbe640f9ef91feedcd0897518bfd08f68 (diff)
Fix formatting (#224)
Ran `cargo +nightly fmt --all` as indicated in the PR template. Since this affects code not otherwise being modified, I did this as a separate PR.
Diffstat (limited to 'src/builder.rs')
-rw-r--r--src/builder.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/builder.rs b/src/builder.rs
index a189de5..8e69438 100644
--- a/src/builder.rs
+++ b/src/builder.rs
@@ -643,10 +643,9 @@ impl ContainerOptionsBuilder {
}
/// enable all exposed ports on the container to be mapped to random, available, ports on the host
- pub fn publish_all_ports(
- &mut self,
- ) -> &mut Self {
- self.params.insert("HostConfig.PublishAllPorts", json!(true));
+ pub fn publish_all_ports(&mut self) -> &mut Self {
+ self.params
+ .insert("HostConfig.PublishAllPorts", json!(true));
self
}