Fix `XDeclaredButNotUsed` warning when locks or rlocks module is used

This commit is contained in:
Anatoly Galiulin 2016-03-25 16:41:48 +06:00
commit ebc02f6dc0
4 changed files with 28 additions and 30 deletions

View file

@ -63,4 +63,4 @@ template withLock*(a: Lock, body: untyped) =
try:
body
finally:
a.release()
a.release()