From 7ff764ca1f921ee709f05219aa740ab6c42872fc Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Mon, 11 May 2020 14:39:56 +0300 Subject: [PATCH] Flush happens automatically on close --- serialization.nim | 1 - 1 file changed, 1 deletion(-) diff --git a/serialization.nim b/serialization.nim index f19e19e..3d70b92 100644 --- a/serialization.nim +++ b/serialization.nim @@ -109,7 +109,6 @@ template saveFile*(Format: type, filename: string, value: auto, params: varargs[ try: var writer = unpackArgs(init, [WriterType(Format), stream, params]) writer.writeValue(value) - flush stream finally: close stream