From b760ec7eca293740a912a177bf0a9014bbfdd939 Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Sat, 20 Nov 2021 20:52:48 -0800 Subject: [PATCH] Cut --- schala-lang/src/parsing/combinator.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/schala-lang/src/parsing/combinator.rs b/schala-lang/src/parsing/combinator.rs index 6d48e67..454115b 100644 --- a/schala-lang/src/parsing/combinator.rs +++ b/schala-lang/src/parsing/combinator.rs @@ -362,9 +362,9 @@ fn variant_spec(input: Span) -> ParseResult { } fn record_variant_item(input: Span) -> ParseResult<(Rc, 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 {