Skip to content

Commit

Permalink
Merge pull request #10 from status-im/autoclose-streams
Browse files Browse the repository at this point in the history
autoclose streams, fix #9
  • Loading branch information
mratsim authored Sep 11, 2019
2 parents e874ae6 + cb6055a commit 7a42cab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions serialization.nim
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ template loadFile*(Format: distinct type,
params: varargs[untyped]): auto =
mixin init, ReaderType
var stream = openFile(filename)
defer: stream.close() # TODO: destructors

# TODO:
# Remove this when statement once the following bug is fixed:
Expand Down

0 comments on commit 7a42cab

Please sign in to comment.