Skip to content

Commit

Permalink
fix ImplicitTemplateRedefinition warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tersec committed Sep 10, 2024
1 parent a28bb97 commit d75a5cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chronicles.nim
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ macro logScopeIMPL(prevScopes: typed,

let activeScope = id("activeChroniclesScope", isPublic)
result.add quote do:
template `activeScope` {.used.} =
template `activeScope` {.redefine, used.} =
`newRevision`
`newAssingments`

Expand Down Expand Up @@ -411,4 +411,4 @@ logFn fatal , LogLevel.FATAL
# * dynamic scope overrides (plus maybe an option to control the priority
# between dynamic and lexical bindings)
#
# * implement some of the leading standardized structured logging formats
# * implement some of the leading standardized structured logging formats

0 comments on commit d75a5cb

Please sign in to comment.