Cleanup: Remove unneeded template

This commit is contained in:
Florian Schroedl
2022-08-09 22:15:20 +02:00
parent 56d1b625ee
commit f154a6c9ec

View File

@@ -42,7 +42,7 @@ func ch*(expectedChars: set[char]): parserFnT {.inline.} =
if newIndex > (state.stream.len - 1): if newIndex > (state.stream.len - 1):
return err(ParserError( return err(ParserError(
kind: endOfStringErr, kind: endOfStringErr,
expected: &"{expectedChars.prettyExpectedSet()}", expected: expectedChars.prettyExpectedSet(),
index: newIndex, index: newIndex,
parser: parser, parser: parser,
)) ))
@@ -60,8 +60,8 @@ func ch*(expectedChars: set[char]): parserFnT {.inline.} =
else: else:
return err(ParserError( return err(ParserError(
kind: charMismatchErr, kind: charMismatchErr,
unexpected: &"{foundChar}", unexpected: $foundChar,
expected: &"{expectedChars.prettyExpectedSet()}", expected: expectedChars.prettyExpectedSet(),
index: newIndex, index: newIndex,
parser: parser, parser: parser,
)) ))