From 8f887043cb2ef9ac1f8ece3d12eeea410d540b56 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Thu, 11 Mar 2021 21:34:18 +0100 Subject: [PATCH] Remove redundant call --- src/utils/copy.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/utils/copy.rs b/src/utils/copy.rs index 1ccde1cef..9e30efcd0 100644 --- a/src/utils/copy.rs +++ b/src/utils/copy.rs @@ -29,7 +29,6 @@ pub fn copy_doc_dir, Q: AsRef>(source: P, destination: Q) - let metadata = file.metadata()?; if metadata.is_dir() { - fs::create_dir_all(&destination_full_path)?; copy_doc_dir(file.path(), destination_full_path)? } else if dup_regex.is_match(&file.file_name().into_string().unwrap()[..]) { continue;