From: Brendan Hansen Date: Sun, 25 Apr 2021 03:59:56 +0000 (-0500) Subject: small cleanup X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=8840a9ecd528bfe1d26cf0e9d9db2e6821f773c5;p=onyx.git small cleanup --- diff --git a/core/container/map.onyx b/core/container/map.onyx index 1153597a..c6be5e42 100644 --- a/core/container/map.onyx +++ b/core/container/map.onyx @@ -45,12 +45,11 @@ put :: (use map: ^Map($K, $V), key: K, value: V) { return; } - entry : Map.Entry(K, V); - entry.key = key; - entry.value = value; - entry.next = hashes[lr.hash_index]; - - array.push(^entries, entry); + array.push(^entries, .{ + key = key, + value = value, + hashes[lr.hash_index], + }); hashes[lr.hash_index] = entries.count - 1; }