Apply clippy::cloned_instead_of_copied

This commit is contained in:
Luracasmus 2025-11-22 19:56:33 +01:00 committed by Alejandro González
parent 5424bbf86a
commit 59b916e736
No known key found for this signature in database

View file

@ -205,7 +205,7 @@ fn parse_opts_into_struct(
}; };
// Get custom brute settings and rebuild the filter set to apply them // Get custom brute settings and rebuild the filter set to apply them
let mut brute_lines = matches.get_one::<usize>("brute-lines").cloned(); let mut brute_lines = matches.get_one::<usize>("brute-lines").copied();
let mut brute_level = matches.get_one::<i64>("brute-level").map(|x| *x as u8); let mut brute_level = matches.get_one::<i64>("brute-level").map(|x| *x as u8);
let mut new_filters = IndexSet::new(); let mut new_filters = IndexSet::new();
for mut f in opts.filters.drain(..) { for mut f in opts.filters.drain(..) {