mirror of https://github.com/status-im/NimYAML.git
remove unnecessary cast on return value of `newStringOfCap`
This commit is contained in:
parent
ebe4201cbc
commit
f0eeece22d
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue