From e97bf7175ddf063788df2fa630b4dedcd19388a0 Mon Sep 17 00:00:00 2001 From: Keir Lawson Date: Sat, 18 May 2019 02:44:53 +0100 Subject: Switch path type requirement to make more ergonomic (#168) --- examples/containercopyinto.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') 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); } -- cgit v1.2.3