Comply with clippy

This commit is contained in:
Chadtech 2021-04-24 18:40:06 -04:00
parent 09aad833d5
commit f7491cd9e9

View file

@ -269,9 +269,7 @@ fn type_to_docs(type_annotation: ast::TypeAnnotation) -> Option<TypeAnnotation>
}
}
fn record_field_to_doc<'a>(
field: ast::AssignedField<'a, ast::TypeAnnotation>,
) -> Option<RecordField> {
fn record_field_to_doc(field: ast::AssignedField<'_, ast::TypeAnnotation>) -> Option<RecordField> {
match field {
AssignedField::RequiredValue(name, _, type_ann) => {
type_to_docs(type_ann.value).map(|type_ann_docs| RecordField {