This commit is contained in:
Greg Shuflin 2021-11-20 20:52:48 -08:00
parent 94db2ea17f
commit b760ec7eca

View File

@ -362,9 +362,9 @@ fn variant_spec(input: Span) -> ParseResult<Variant> {
}
fn record_variant_item(input: Span) -> ParseResult<(Rc<String>, TypeIdentifier)> {
map(tuple((identifier, tok(char(':')), type_identifier)), |(name, _, ty)| {
cut(map(tuple((identifier, tok(char(':')), type_identifier)), |(name, _, ty)| {
(rc_string(name.fragment()), ty)
})(input)
}))(input)
}
fn binding(input: Span) -> ParseResult<Declaration> {