Cut
This commit is contained in:
parent
94db2ea17f
commit
b760ec7eca
@ -362,9 +362,9 @@ fn variant_spec(input: Span) -> ParseResult<Variant> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn record_variant_item(input: Span) -> ParseResult<(Rc<String>, TypeIdentifier)> {
|
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)
|
(rc_string(name.fragment()), ty)
|
||||||
})(input)
|
}))(input)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn binding(input: Span) -> ParseResult<Declaration> {
|
fn binding(input: Span) -> ParseResult<Declaration> {
|
||||||
|
Loading…
Reference in New Issue
Block a user