Use the latest FastStreams API

This commit is contained in:
Zahary Karadjov 2020-04-09 23:13:42 +03:00
parent 68e9ef7901
commit 23bbf4b6a5
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
2 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ template borrowSerialization*(Alias: distinct type,
mixin readValue
value = Alias reader.readValue(OriginalType)
template appendValue*(stream: OutputStreamVar, Format: type, value: auto) =
template appendValue*(stream: OutputStream, Format: type, value: auto) =
mixin WriterType, init, writeValue
var writer = init(WriterType(Format), stream)
writeValue writer, value

View File

@ -56,7 +56,7 @@ type
B
CaseObject* = object
case kind*: ObjectKind:
case kind*: ObjectKind
of A:
a*: int
other*: CaseObjectRef