Fought against clippy and lost

This commit is contained in:
Ayaz Hafiz 2022-04-22 15:30:55 -04:00
parent 7d908dc99c
commit 17e7b10267
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
3 changed files with 14 additions and 9 deletions

View file

@ -5847,7 +5847,7 @@ fn to_opt_branches<'a>(
Ok((mono_pattern, assignments)) => {
loc_branches.push((
Loc::at(loc_pattern.region, mono_pattern.clone()),
exhaustive_guard.clone(),
exhaustive_guard,
));
let mut loc_expr = when_branch.value.clone();
@ -5877,7 +5877,7 @@ fn to_opt_branches<'a>(
Err(runtime_error) => {
loc_branches.push((
Loc::at(loc_pattern.region, Pattern::Underscore),
exhaustive_guard.clone(),
exhaustive_guard,
));
// TODO remove clone?