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 da9af19a..0168ad63 100644
--- a/src/utils/twtstr.nim
+++ b/src/utils/twtstr.nim
@@ -96,7 +96,7 @@ func camelToKebabCase*(s: string): string =
       result &= c
 
 func isAscii*(r: Rune): bool =
-  return cast[uint32](r) < 128
+  return uint32(r) < 128
 
 func startsWithNoCase*(str, prefix: string): bool =
   if str.len < prefix.len: return false