[OutputStream] Clean up TODO items unlocked by Nim 1.2; Simplify the public API

This commit is contained in:
Zahary Karadjov 2020-04-09 22:20:56 +03:00
commit 62136f8e79
No known key found for this signature in database
GPG key ID: C8936F8A3073D609
2 changed files with 48 additions and 59 deletions

View file

@ -154,11 +154,11 @@ suite "output stream":
test "nim odd behavior":
# discovered in status-im/nim-snappy#2
proc encode(s: OutputStreamVar) =
proc encode(s: OutputStream) =
check true
proc abc(s: OutputStreamVar) =
OutputStreamVar(s.outputDevice).encode
proc abc(s: OutputStream) =
OutputStream(s.outputDevice).encode
check true
var os = new OutputStream