mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-13 09:49:11 +03:00
Fix clippy error
This commit is contained in:
parent
1be74346f4
commit
f0e223a6b3
@ -554,10 +554,8 @@ fn type_annotation_to_html(
|
||||
paren_is_open = true;
|
||||
}
|
||||
|
||||
let child_needs_parens = match arg {
|
||||
TypeAnnotation::Function { args: _, output: _ } => true,
|
||||
_ => false,
|
||||
};
|
||||
let child_needs_parens =
|
||||
matches!(arg, TypeAnnotation::Function { args: _, output: _ });
|
||||
type_annotation_to_html(indent_level, buf, arg, child_needs_parens);
|
||||
|
||||
if peekable_args.peek().is_some() {
|
||||
|
Loading…
Reference in New Issue
Block a user