summaryrefslogtreecommitdiffstats
path: root/examples/containerexec.rs
diff options
context:
space:
mode:
authorsoftprops <d.tangren@gmail.com>2017-06-25 21:29:32 -0400
committersoftprops <d.tangren@gmail.com>2017-06-25 21:29:32 -0400
commit6d784b1e4f7da7bbe837d32f040a37634208e73c (patch)
treea13627f8e5f2c7f805640e90a1a4ff7dfb57e373 /examples/containerexec.rs
parentfe51ec45f98f215a7158bf64b9f10b80ce04e720 (diff)
apply rustfmt
Diffstat (limited to 'examples/containerexec.rs')
-rw-r--r--examples/containerexec.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/containerexec.rs b/examples/containerexec.rs
index b41d1ac..e10d245 100644
--- a/examples/containerexec.rs
+++ b/examples/containerexec.rs
@@ -6,7 +6,11 @@ use std::env;
fn main() {
let docker = Docker::new();
let options = ExecContainerOptions::builder()
- .cmd(vec!["bash", "-c", "echo -n \"echo VAR=$VAR on stdout\"; echo -n \"echo VAR=$VAR on stderr\" >&2"])
+ .cmd(vec![
+ "bash",
+ "-c",
+ "echo -n \"echo VAR=$VAR on stdout\"; echo -n \"echo VAR=$VAR on stderr\" >&2",
+ ])
.env(vec!["VAR=value"])
.attach_stdout(true)
.attach_stderr(true)