about summary refs log tree commit diff stats
path: root/src/utils/twtstr.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/twtstr.nim')
-rw-r--r--src/utils/twtstr.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/twtstr.nim b/src/utils/twtstr.nim
index b1c6d1c9..da234982 100644
--- a/src/utils/twtstr.nim
+++ b/src/utils/twtstr.nim
@@ -675,7 +675,7 @@ func parseEnumNoCase*[T: enum](s: string): Opt[T] =
   # cmp when len is small enough, otherwise hashmap
   when {T.low..T.high}.len <= 4:
     for e in T.low .. T.high:
-      if $e.equalsIgnoreCase(s):
+      if ($e).equalsIgnoreCase(s):
         return ok(e)
   else:
     const tab = (func(): Table[string, T] =