mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
clippy
This commit is contained in:
parent
82c81a7039
commit
42a110dc6b
1 changed files with 1 additions and 3 deletions
|
@ -699,9 +699,7 @@ fn fmt_when<'a, 'buf>(
|
|||
buf.push_str("is");
|
||||
buf.newline();
|
||||
|
||||
let mut it = branches.iter().enumerate().peekable();
|
||||
|
||||
while let Some((branch_index, branch)) = it.next() {
|
||||
for (branch_index, branch) in branches.iter().enumerate() {
|
||||
let expr = &branch.value;
|
||||
let patterns = &branch.patterns;
|
||||
let is_multiline_expr = expr.is_multiline();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue