summaryrefslogtreecommitdiff
path: root/lib/std/fmt.myr
diff options
context:
space:
mode:
authorLucas Gabriel Vuotto <lvuotto92@gmail.com>2017-11-01 16:53:26 -0300
committerOri Bernstein <ori@markovcorp.com>2017-11-14 13:50:39 -0800
commit83d26331a5419033927800760e8a59f1bd84d2b9 (patch)
treed5985e8e5a32e673f549fcaa8eb23b5335f4f74d /lib/std/fmt.myr
parent8a662861ad3ded8e965ab43e5bc254dd7ee85815 (diff)
downloadmc-83d26331a5419033927800760e8a59f1bd84d2b9.tar.gz
Use new traits to implement hash tables
Signed-off-by: Lucas Gabriel Vuotto <lvuotto92@gmail.com>
Diffstat (limited to 'lib/std/fmt.myr')
-rw-r--r--lib/std/fmt.myr3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/std/fmt.myr b/lib/std/fmt.myr
index fffc092..07f9995 100644
--- a/lib/std/fmt.myr
+++ b/lib/std/fmt.myr
@@ -21,6 +21,7 @@ use "striter"
use "strsplit"
use "syswrap"
use "syswrap-ss"
+use "traits"
use "types"
use "utf"
use "varargs"
@@ -55,7 +56,7 @@ pkg std =
;;
const __init__ = {
- fmtmap = mkht(strhash, streq)
+ fmtmap = mkht()
}
type fmtdesc = struct