mirror of
https://github.com/uutils/findutils.git
synced 2026-06-10 15:48:30 -07:00
find: fix clippy::implicit_clone
This commit is contained in:
+1
-1
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user