From c9a7bc14ad53ae2816c68fa08e8c4030d6e8f32c Mon Sep 17 00:00:00 2001 From: amrbashir Date: Wed, 17 Jul 2024 07:50:08 +0300 Subject: [PATCH] clippy --- core/tauri-utils/src/resources.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/tauri-utils/src/resources.rs b/core/tauri-utils/src/resources.rs index 69a58c4a11d2..01ac37bed9ef 100644 --- a/core/tauri-utils/src/resources.rs +++ b/core/tauri-utils/src/resources.rs @@ -176,7 +176,7 @@ impl<'a> ResourcePathsIter<'a> { // if processing a directory, preserve directory structure under current_dest if self.walk_iter.is_some() { let current_pattern = self.current_pattern.as_ref().unwrap(); - current_dest.join(path.strip_prefix(¤t_pattern).unwrap_or(&path)) + current_dest.join(path.strip_prefix(current_pattern).unwrap_or(path)) } else if current_dest.components().count() == 0 { // else if current_dest is empty while processing a file pattern or glob // we preserve the file name as it is @@ -190,7 +190,7 @@ impl<'a> ResourcePathsIter<'a> { current_dest.clone() } }) - .unwrap_or_else(|| resource_relpath(&path)), + .unwrap_or_else(|| resource_relpath(path)), path: path.to_path_buf(), } }