mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
Clippy
This commit is contained in:
parent
7c0c0ef02a
commit
627d73e4c0
3 changed files with 6 additions and 8 deletions
|
@ -1178,7 +1178,7 @@ fn constrain_when_branch_help(
|
|||
// must introduce the headers from the pattern before constraining the guard
|
||||
state
|
||||
.constraints
|
||||
.extend(state.delayed_is_open_constriants.drain(..));
|
||||
.append(&mut state.delayed_is_open_constriants);
|
||||
let state_constraints = constraints.and_constraint(state.constraints);
|
||||
let inner = constraints.let_constraint([], [], [], guard_constraint, ret_constraint);
|
||||
|
||||
|
@ -1186,7 +1186,7 @@ fn constrain_when_branch_help(
|
|||
} else {
|
||||
state
|
||||
.constraints
|
||||
.extend(state.delayed_is_open_constriants.drain(..));
|
||||
.append(&mut state.delayed_is_open_constriants);
|
||||
let state_constraints = constraints.and_constraint(state.constraints);
|
||||
(state_constraints, ret_constraint)
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue