From b6db79774a34fa8761f7edd7ba078df846fcd698 Mon Sep 17 00:00:00 2001 From: glitchySid Date: Fri, 9 Jan 2026 17:45:13 +0530 Subject: [PATCH] fix the warnings --- src/files/batch.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/files/batch.rs b/src/files/batch.rs index e0ad951..8534272 100644 --- a/src/files/batch.rs +++ b/src/files/batch.rs @@ -12,9 +12,9 @@ impl FileBatch { let mut filenames = Vec::new(); let mut paths = Vec::new(); let walker = if recursive { - WalkDir::new(&root_path).min_depth(1).follow_links(false) + WalkDir::new(root_path).min_depth(1).follow_links(false) } else { - WalkDir::new(&root_path) + WalkDir::new(root_path) .min_depth(1) .max_depth(1) .follow_links(false) @@ -22,7 +22,7 @@ impl FileBatch { for entry in walker.into_iter().filter_map(|e| e.ok()) { let path = entry.path(); if path.is_file() { - match path.strip_prefix(&root_path) { + match path.strip_prefix(root_path) { Ok(relative_path) => { filenames.push(relative_path.to_string_lossy().into_owned()); paths.push(path.to_path_buf());