remove unnecessary cast on return value of `newStringOfCap`

This commit is contained in:
Vindaar 2018-10-09 17:02:30 +02:00 committed by flyx
parent ebe4201cbc
commit f0eeece22d
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ proc currentScalar(c: ParserContext, e: var YamlStreamEvent)
e = YamlStreamEvent(kind: yamlScalar, scalarTag: c.tag,
scalarAnchor: c.anchor)
shallowCopy(e.scalarContent, c.lex.buf)
c.lex.buf = cast[string](newStringOfCap(256))
c.lex.buf = newStringOfCap(256)
c.tag = yTagQuestionMark
c.anchor = yAnchorNone