We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 965b958 commit 8ab36a1Copy full SHA for 8ab36a1
library/std/src/sys/windows/fs.rs
@@ -156,7 +156,7 @@ impl DirEntry {
156
}
157
158
pub fn path(&self) -> PathBuf {
159
- self.root.join(&self.file_name())
+ self.root.join(self.file_name())
160
161
162
pub fn file_name(&self) -> OsString {
library/std/src/sys/windows/process.rs
@@ -463,7 +463,7 @@ fn resolve_exe<'a>(
463
464
// Search the directories given by `search_paths`.
465
let result = search_paths(parent_paths, child_paths, |mut path| {
466
- path.push(&exe_path);
+ path.push(exe_path);
467
if !has_extension {
468
path.set_extension(EXE_EXTENSION);
469
0 commit comments