Cleanup: Remove unneeded template
This commit is contained in:
@@ -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,
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user