chore: Pass regex pattern as slice instead of string

This commit is contained in:
Baptiste Roux
2023-02-01 18:14:56 +01:00
parent d267564bca
commit fdafa3aa81
2 changed files with 6 additions and 6 deletions

View File

@@ -199,7 +199,8 @@ fn main() {
}
};
let (found_repos, warnings) = match find_in_tree(&path, &args.exclude) {
let (found_repos, warnings) = match find_in_tree(&path, args.exclude.as_deref())
{
Ok((repos, warnings)) => (repos, warnings),
Err(error) => {
print_error(&error);