Skip to content

Commit ed8b7f4

Browse files
committed
Nim 1.6 thinks restSingleProc has side effects
1 parent 4c03d5f commit ed8b7f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

presto/client.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ proc requestWithBody*(
864864
closeObjects(writer, request, redirect, response)
865865
raiseRestCommunicationError(exc)
866866

867-
func restSingleProc(prc: NimNode): NimNode {.compileTime.} =
867+
proc restSingleProc(prc: NimNode): NimNode {.compileTime.} =
868868
if prc.kind notin {nnkProcDef}:
869869
error("Cannot transform this node kind into an REST client procedure." &
870870
" Only `proc` definition expected.")

0 commit comments

Comments
 (0)