mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
Clippy
This commit is contained in:
parent
59ab1da83f
commit
838ba14581
1 changed files with 1 additions and 1 deletions
|
@ -1410,7 +1410,7 @@ fn canonicalize_when_branch<'a>(
|
|||
}
|
||||
}
|
||||
|
||||
if some_symbols_not_bound_in_all_patterns && pattern_bound_symbols_body_needs.len() > 0 {
|
||||
if some_symbols_not_bound_in_all_patterns && !pattern_bound_symbols_body_needs.is_empty() {
|
||||
// There might be branches that don't bind all the symbols needed by the body; mark those
|
||||
// branches degenerate.
|
||||
for pattern in patterns.iter_mut() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue