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):
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,
))