summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMarc Schreiber <schrieveslaach@online.de>2019-02-25 15:27:21 +0100
committerdoug tangren <d.tangren@gmail.com>2019-02-25 09:27:21 -0500
commiteb98b1916c0220e44e2d0f3c869c01a2dd037f60 (patch)
tree40b2e2c6bbfecc26670f4fb19d89acc80e62a42b /examples
parentad95d93204cc84cc4648a1defac786db3ddd8582 (diff)
Apply rust format to fix CI checks (#153)
Diffstat (limited to 'examples')
-rw-r--r--examples/containercopyinto.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/containercopyinto.rs b/examples/containercopyinto.rs
index df56ca2..fb2de50 100644
--- a/examples/containercopyinto.rs
+++ b/examples/containercopyinto.rs
@@ -11,13 +11,12 @@ fn main() {
.nth(2)
.expect("Usage: cargo run --example containercopyinto -- <local path> <container>");
-
- use std::fs::File;
- use std::io::prelude::*;
+ use std::{fs::File, io::prelude::*};
let mut file = File::open(&path).unwrap();
let mut bytes = Vec::new();
- file.read_to_end(&mut bytes).expect("Cannot read file on the localhost.");
+ file.read_to_end(&mut bytes)
+ .expect("Cannot read file on the localhost.");
let fut = docker
.containers()