From c1d7a40e79775f8fc0821bd9fb0455f5acf2c4ce Mon Sep 17 00:00:00 2001 From: Sven-Hendrik Haase Date: Mon, 4 Jan 2021 03:17:25 +0100 Subject: Fix lint --- src/archive.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/archive.rs b/src/archive.rs index ab43ffb..03c52cd 100644 --- a/src/archive.rs +++ b/src/archive.rs @@ -204,7 +204,7 @@ where /// ``` fn create_zip_from_directory( out: W, - directory: &PathBuf, + directory: &Path, skip_symlinks: bool, ) -> Result<(), ContextualError> where @@ -212,7 +212,7 @@ where { let options = write::FileOptions::default().compression_method(zip::CompressionMethod::Stored); let mut paths_queue: Vec = vec![]; - paths_queue.push(directory.clone()); + paths_queue.push(directory.to_path_buf()); let zip_root_folder_name = directory.file_name().ok_or_else(|| { ContextualError::InvalidPathError("Directory name terminates in \"..\"".to_string()) })?; -- cgit v1.2.3