Parse explicit optional field types as rigid optionals

This commit is contained in:
Ayaz Hafiz 2022-08-09 11:39:01 -07:00
parent b69051c90e
commit b3d4c8f09b
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

@ -1220,7 +1220,7 @@ fn can_assigned_fields<'a>(
);
let label = Lowercase::from(field_name.value);
field_types.insert(label.clone(), Optional(field_type));
field_types.insert(label.clone(), RigidOptional(field_type));
break 'inner label;
}