Fix clippy error

This commit is contained in:
Yuki Omoto 2023-03-27 20:43:51 +09:00
parent 1be74346f4
commit f0e223a6b3
No known key found for this signature in database
GPG Key ID: 9A7D6C91D5219717

View File

@ -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() {