at 24.05-pre 949 B view raw
1From 14cd9c12416b5c9ada55ced51e8f92fdce56a4b1 Mon Sep 17 00:00:00 2001 2From: Aaron Andersen <aaron@fosslib.net> 3Date: Tue, 7 Nov 2023 09:05:26 -0500 4Subject: [PATCH] fix(config): rustc warnings 5 6--- 7 src/convert_config.rs | 3 +-- 8 1 file changed, 1 insertion(+), 2 deletions(-) 9 10diff --git a/src/convert_config.rs b/src/convert_config.rs 11index f0a900cf421a0..d81b998c5ee1f 100644 12--- a/src/convert_config.rs 13+++ b/src/convert_config.rs 14@@ -157,8 +157,7 @@ fn walk_dir_and_convert( 15 let new_output_dir = if entry_path.is_dir() { 16 let last_component = entry_path 17 .file_name() 18- .unwrap_or_else(|| panic!("Failed to get file_name for {entry_path:?}")) 19- .clone(); 20+ .unwrap_or_else(|| panic!("Failed to get file_name for {entry_path:?}")); 21 let new_dir = output_dir.join(last_component); 22 23 if !new_dir.exists() {