Use the latest FastStreams API
This commit is contained in:
parent
68e9ef7901
commit
23bbf4b6a5
|
@ -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
|
||||
|
|
|
@ -56,7 +56,7 @@ type
|
|||
B
|
||||
|
||||
CaseObject* = object
|
||||
case kind*: ObjectKind:
|
||||
case kind*: ObjectKind
|
||||
of A:
|
||||
a*: int
|
||||
other*: CaseObjectRef
|
||||
|
|
Loading…
Reference in New Issue