Skip to content

Commit

Permalink
Make docopt compile with stricteffects (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout authored Oct 17, 2022
1 parent 2eb234e commit d2ad95f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/docopt.nim
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@ method single_match(self: Command, left: seq[Pattern]): SingleMatchResult =


proc option_parse[T](
constructor: proc(short, long: string; argcount: int; value: Value): T,
constructor: proc(short, long: string; argcount: int;
value: Value): T {.gcsafe.},
option_description: string): T =
var short, long: string = ""
var argcount = 0
Expand Down

0 comments on commit d2ad95f

Please sign in to comment.