From 28b6b1c3fbe218013ef2db2861b6f5b20641c381 Mon Sep 17 00:00:00 2001 From: Jasper Jenkins Date: Fri, 20 Mar 2020 01:22:40 -0700 Subject: [PATCH] fix nimpretty warning (#13700) --- nimpretty/nimpretty.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nimpretty/nimpretty.nim b/nimpretty/nimpretty.nim index 50d0d725f..cca4e7aa8 100644 --- a/nimpretty/nimpretty.nim +++ b/nimpretty/nimpretty.nim @@ -67,8 +67,7 @@ proc main = # `prettyPrint` could over-write it (note that the backup may happen even # if input is not actually over-written, when nimpretty is a noop). # --backup was un-documented (rely on git instead). - var opt: PrettyOptions - opt.maxLineLen = 80 + var opt = PrettyOptions(indWidth: 0, maxLineLen: 80) for kind, key, val in getopt(): case kind of cmdArgument: