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):
|
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,
|
||||||
))
|
))
|
||||||
|
|||||||
Reference in New Issue
Block a user