explicitly annotate iterator exception effects so it does not default to raises: [Exception]
This commit is contained in:
parent
78a15b1123
commit
5d1755081c
|
@ -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",
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue