From ae72433b89f768466e6b9680b2b3d5bf7357aaec Mon Sep 17 00:00:00 2001 From: Claudio Russo Date: Fri, 16 Feb 2024 16:16:11 +0000 Subject: [PATCH] Apply suggestions from code review --- collections/motoko/src/ZhenyaHashmap.mo | 2 +- collections/motoko/src/hashmap.mo | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/collections/motoko/src/ZhenyaHashmap.mo b/collections/motoko/src/ZhenyaHashmap.mo index 4547e1c0..f74a84cb 100644 --- a/collections/motoko/src/ZhenyaHashmap.mo +++ b/collections/motoko/src/ZhenyaHashmap.mo @@ -9,7 +9,7 @@ import Prim "mo:prim"; actor { stable let profiling = Profiling.init(); - let public func hashNat64(key: Nat64): Nat32 { + hashNat64(key: Nat64): Nat32 { Prim.nat64ToNat32(key & 0x0fff_ffff); }; diff --git a/collections/motoko/src/hashmap.mo b/collections/motoko/src/hashmap.mo index f8ae4fc1..ea8f1b3e 100644 --- a/collections/motoko/src/hashmap.mo +++ b/collections/motoko/src/hashmap.mo @@ -9,7 +9,6 @@ import Profiling "../../../utils/motoko/Profiling"; actor { stable let profiling = Profiling.init(); - func hash(x: Nat64) : Nat32 = Hash.hash(Nat64.toNat x); var map = HashMap.HashMap(0, Nat64.equal, hash); stable var stableMap: [(Nat64, Nat64)] = [];