find: fix clippy::implicit_clone

This commit is contained in:
Sylvestre Ledru
2026-06-08 22:23:45 +02:00
parent a63482b8cf
commit 600f3af140
+1 -1
View File
@@ -187,7 +187,7 @@ fn parse_args(args: &[&str]) -> Result<ParsedInfo, Box<dyn Error>> {
let matcher = matchers::build_top_level_matcher(&args[i..], &mut config)?;
if let Some(new_paths) = &config.new_paths {
if paths.len() == 1 && paths[0] == "." {
paths = new_paths.to_vec();
paths = new_paths.clone();
} else {
return Err(From::from(format!(
"extra operand '{}'\nfile operands cannot be combined with -files0-from",