Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir committed Jul 17, 2024
1 parent 0116e4b commit c9a7bc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/tauri-utils/src/resources.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(&current_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
Expand All @@ -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(),
}
}
Expand Down

0 comments on commit c9a7bc1

Please sign in to comment.