find: fix needless borrow clippy warning (#423)

This commit is contained in:
Daniel Hofstetter
2024-07-26 03:15:07 +08:00
committed by GitHub
parent 3b222d6040
commit c4a56e9c3f
+1 -1
View File
@@ -67,7 +67,7 @@ impl Matcher for SingleExecMatcher {
for arg in &self.args {
match *arg {
Arg::LiteralArg(ref a) => command.arg(a.as_os_str()),
Arg::FileArg(ref parts) => command.arg(&parts.join(path_to_file.as_os_str())),
Arg::FileArg(ref parts) => command.arg(parts.join(path_to_file.as_os_str())),
};
}
if self.exec_in_parent_dir {