stylechecks workaround

This commit is contained in:
Jaremy Creechley 2023-08-29 17:19:58 -07:00 committed by Dmitriy Ryajov
parent 3f3e4b8d78
commit 64434b70b0
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4
2 changed files with 6 additions and 0 deletions

View File

@ -3,6 +3,9 @@ import std/hashes
export hashes
when defined(nimHasStyleChecks):
{.push styleChecks: off.}
type
DataBufferHolder* = object
buf: ptr UncheckedArray[byte]

View File

@ -14,6 +14,9 @@ import threading/smartptrs
export key, query, smartptrs, databuffer
when defined(nimHasStyleChecks):
{.push styleChecks: off.}
push: {.upraises: [].}
type