From 18d0833141d0cb0cf71b6fa31ae710fb55a7f132 Mon Sep 17 00:00:00 2001 From: gmega Date: Fri, 15 Dec 2023 15:37:28 -0300 Subject: [PATCH] explicitly annotate iterator exception effects so it does not default to raises: [Exception] --- datastore.nimble | 2 +- datastore/fsds.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datastore.nimble b/datastore.nimble index 6252c6d..1900f3d 100644 --- a/datastore.nimble +++ b/datastore.nimble @@ -7,7 +7,7 @@ description = "Simple, unified API for multiple data stores" license = "Apache License 2.0 or MIT" requires "nim >= 1.2.0", - "asynctest >= 0.3.1 & < 0.4.0", + "asynctest >= 0.4.3 & < 0.5.0", "chronos", "questionable >= 0.10.3 & < 0.11.0", "sqlite3_abi", diff --git a/datastore/fsds.nim b/datastore/fsds.nim index 31a3875..038671b 100644 --- a/datastore/fsds.nim +++ b/datastore/fsds.nim @@ -156,7 +156,7 @@ method put*( return success() -proc dirWalker(path: string): iterator: string {.gcsafe.} = +proc dirWalker(path: string): (iterator: string {.raises: [Defect], gcsafe.}) = return iterator(): string = try: for p in path.walkDirRec(yieldFilter = {pcFile}, relative = true):