explicitly annotate iterator exception effects so it does not default to raises: [Exception]

This commit is contained in:
gmega 2023-12-15 15:37:28 -03:00 committed by Giuliano Mega
parent 78a15b1123
commit 5d1755081c
2 changed files with 2 additions and 2 deletions

View File

@ -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",

View File

@ -154,7 +154,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):