needless_borrows_for_generic_args

the borrowed expression implements the required traits
This commit is contained in:
Chris Denton
2023-11-21 23:21:56 +00:00
parent fe255695f9
commit 42734599bd
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -156,7 +156,7 @@ fn new(root: &Arc<PathBuf>, wfd: &c::WIN32_FIND_DATAW) -> Option<DirEntry> {
}
pub fn path(&self) -> PathBuf {
self.root.join(&self.file_name())
self.root.join(self.file_name())
}
pub fn file_name(&self) -> OsString {
+1 -1
View File
@@ -463,7 +463,7 @@ fn resolve_exe<'a>(
// Search the directories given by `search_paths`.
let result = search_paths(parent_paths, child_paths, |mut path| {
path.push(&exe_path);
path.push(exe_path);
if !has_extension {
path.set_extension(EXE_EXTENSION);
}