needless_borrows_for_generic_args
the borrowed expression implements the required traits
This commit is contained in:
parent
fe255695f9
commit
42734599bd
2 changed files with 2 additions and 2 deletions
|
|
@ -156,7 +156,7 @@ impl DirEntry {
|
|||
}
|
||||
|
||||
pub fn path(&self) -> PathBuf {
|
||||
self.root.join(&self.file_name())
|
||||
self.root.join(self.file_name())
|
||||
}
|
||||
|
||||
pub fn file_name(&self) -> OsString {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue