mirror of
https://github.com/logos-storage/questionable.git
synced 2026-01-11 18:23:13 +00:00
`errorban` module [has been deprecated][deprecation] since v0.5.0. The library continued to use it internally, but because of that, it was triggering its own deprecation warning. This commit splits `errorban.nim` into two pieces: the warning and actual code. [deprecation]: https://github.com/status-im/questionable/commit/e66cd2439b
9 lines
284 B
Nim
9 lines
284 B
Nim
## Include this file to indicate that your module does not raise Errors.
|
|
## Disables compiler hints about unused declarations in Nim < 1.4.0
|
|
|
|
when (NimMajor, NimMinor, NimPatch) >= (1, 4, 0):
|
|
{.push raises:[].}
|
|
else:
|
|
{.push raises: [Defect].}
|
|
{.hint[XDeclaredButNotUsed]: off.}
|