From f154a6c9ec2b6f74ff3083bea463a1e640981dc4 Mon Sep 17 00:00:00 2001 From: Florian Schroedl Date: Tue, 9 Aug 2022 22:15:20 +0200 Subject: [PATCH] Cleanup: Remove unneeded template --- src_v2/parser/parser_internals.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src_v2/parser/parser_internals.nim b/src_v2/parser/parser_internals.nim index 91e58a7..739889d 100644 --- a/src_v2/parser/parser_internals.nim +++ b/src_v2/parser/parser_internals.nim @@ -42,7 +42,7 @@ func ch*(expectedChars: set[char]): parserFnT {.inline.} = if newIndex > (state.stream.len - 1): return err(ParserError( kind: endOfStringErr, - expected: &"{expectedChars.prettyExpectedSet()}", + expected: expectedChars.prettyExpectedSet(), index: newIndex, parser: parser, )) @@ -60,8 +60,8 @@ func ch*(expectedChars: set[char]): parserFnT {.inline.} = else: return err(ParserError( kind: charMismatchErr, - unexpected: &"{foundChar}", - expected: &"{expectedChars.prettyExpectedSet()}", + unexpected: $foundChar, + expected: expectedChars.prettyExpectedSet(), index: newIndex, parser: parser, ))