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
No known key found for this signature in database
GPG key ID: 713472F2F45627DE
2 changed files with 2 additions and 2 deletions

View file

@ -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 {

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);
}