From e16c57c07cdc6a0d06db59ad180bcac7ad4f30a8 Mon Sep 17 00:00:00 2001 From: David Chalifoux Date: Thu, 7 Nov 2024 22:56:16 -0500 Subject: [PATCH] cleanup --- src/put/files.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/put/files.rs b/src/put/files.rs index 2186cbf..af80d80 100644 --- a/src/put/files.rs +++ b/src/put/files.rs @@ -335,16 +335,11 @@ pub fn download( Ok(()) } -pub fn upload( - api_token: &String, - path: &Path, - parent_id: Option<&String>, - curl_args: &Vec, -) { +pub fn upload(api_token: &String, path: &Path, parent_id: Option<&String>, curl_args: &[String]) { println!("Uploading: {}\n", path.to_string_lossy()); ProcessCommand::new("curl") - .args(curl_args.clone()) + .args(curl_args) .arg("-H") .arg(format!("Authorization: Bearer {}", api_token)) .arg("-F")