summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJasper Jenkins <jasper.vs.jenkins@gmail.com>2020-03-20 01:22:40 -0700
committerGitHub <noreply@github.com>2020-03-20 09:22:40 +0100
commit28b6b1c3fbe218013ef2db2861b6f5b20641c381 (patch)
tree67bc89af196bd207edc8aa2d721700b6034fcc8d
parent35fb38629f2f56d15afea15ba8597f18e2794229 (diff)
downloadNim-28b6b1c3fbe218013ef2db2861b6f5b20641c381.tar.gz
fix nimpretty warning (#13700)
-rw-r--r--nimpretty/nimpretty.nim3
1 files changed, 1 insertions, 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: