diff --git a/config.nims b/config.nims index 7c9db32..7e2fa23 100644 --- a/config.nims +++ b/config.nims @@ -1,3 +1,9 @@ +--styleCheck:usages +if (NimMajor, NimMinor) < (1, 6): + --styleCheck:hint +else: + --styleCheck:error + # begin Nimble config (version 1) when fileExists("nimble.paths"): include "nimble.paths" diff --git a/questionable/private/binderror.nim b/questionable/private/binderror.nim index bf23195..372f256 100644 --- a/questionable/private/binderror.nim +++ b/questionable/private/binderror.nim @@ -1,6 +1,6 @@ import std/options -var captureEnabled {.global, compiletime.}: bool +var captureEnabled {.global, compileTime.}: bool var errorVariable: ptr ref CatchableError template captureBindError*(error: var ref CatchableError, expression): auto =