From 7519451bd079cbe83a1ce49c96cbe7e58c21c368 Mon Sep 17 00:00:00 2001 From: Sven-Hendrik Haase Date: Mon, 20 Dec 2021 14:13:47 +0100 Subject: Fix lints --- src/archive.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/archive.rs b/src/archive.rs index b5a0eda..ed33925 100644 --- a/src/archive.rs +++ b/src/archive.rs @@ -303,7 +303,7 @@ where { let mut data = Vec::new(); let memory_file = Cursor::new(&mut data); - create_zip_from_directory(memory_file, &src_dir.to_path_buf(), skip_symlinks).map_err(|e| { + create_zip_from_directory(memory_file, src_dir, skip_symlinks).map_err(|e| { ContextualError::ArchiveCreationError( "Failed to create the ZIP archive".to_string(), Box::new(e), -- cgit v1.2.3