summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorKeir Lawson <keirlawson@gmail.com>2019-05-18 02:44:53 +0100
committerDoug Tangren <d.tangren@gmail.com>2019-05-17 21:44:53 -0400
commite97bf7175ddf063788df2fa630b4dedcd19388a0 (patch)
tree852f2409cb29295df021cbf9d050a69f396ed485 /examples
parent3df2c90e4855270a024de86d76ded25a0c2d4721 (diff)
Switch path type requirement to make more ergonomic (#168)
Diffstat (limited to 'examples')
-rw-r--r--examples/containercopyinto.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/containercopyinto.rs b/examples/containercopyinto.rs
index fb2de50..63f0a2d 100644
--- a/examples/containercopyinto.rs
+++ b/examples/containercopyinto.rs
@@ -1,5 +1,5 @@
use shiplift::Docker;
-use std::{env, path};
+use std::env;
use tokio::prelude::Future;
fn main() {
@@ -21,7 +21,7 @@ fn main() {
let fut = docker
.containers()
.get(&id)
- .copy_file_into(path::Path::new(&path), &bytes[..])
+ .copy_file_into(path, &bytes[..])
.map_err(|e| eprintln!("Error: {}", e));
tokio::run(fut);
}