Skip to content

Commit

Permalink
for nim 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
guzba committed Aug 18, 2023
1 parent 3afb6ad commit a230a52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions config.nims
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
--threads:on
--mm:orc
when (NimMajor, NimMinor, NimPatch) < (2, 0, 0):
--threads:on
--mm:orc
4 changes: 2 additions & 2 deletions src/ready/connections.nim
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ type
of ArrayReply:
elements: seq[RedisReply]

proc `$`*(conn: RedisConn): string =
func `$`*(conn: RedisConn): string =
"RedisConn " & $cast[uint](conn)

proc `$`*(reply: RedisReply): string =
func `$`*(reply: RedisReply): string =
case reply.kind:
of IntegerReply:
$reply.value
Expand Down

0 comments on commit a230a52

Please sign in to comment.