From a7f3ae942889b3472a0083951654e937dfe935cc Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Mon, 11 Jan 2021 17:41:55 +0100 Subject: [PATCH] Fix warnings about unused setup and teardown --- asynctest.nim | 4 ++-- asynctest.nimble | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/asynctest.nim b/asynctest.nim index ce88688..1016607 100644 --- a/asynctest.nim +++ b/asynctest.nim @@ -4,12 +4,12 @@ export unittest except suite, test template suite*(name, body) = suite name: - template setup(setupBody) = + template setup(setupBody) {.used.} = setup: let asyncproc = proc {.async.} = setupBody waitFor asyncproc() - template teardown(teardownBody) = + template teardown(teardownBody) {.used.} = teardown: let asyncproc = proc {.async.} = teardownBody waitFor asyncproc() diff --git a/asynctest.nimble b/asynctest.nimble index 8b74e95..fd848d5 100644 --- a/asynctest.nimble +++ b/asynctest.nimble @@ -1,4 +1,4 @@ -version = "0.2.0" +version = "0.2.1" author = "asynctest Authors" description = "Test asynchronous code" license = "MIT"