From 8dff0f7ef5d34fa23df7406c6689be9432424ee5 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Tue, 16 Jun 2020 12:57:06 +0100 Subject: [PATCH] `-vet` code --- core/container/set.odin | 2 +- core/container/small_array.odin | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/core/container/set.odin b/core/container/set.odin index f62ea46d4..7ab67cf2e 100644 --- a/core/container/set.odin +++ b/core/container/set.odin @@ -57,7 +57,7 @@ set_add :: proc(m: ^Set, key: u64) { _set_grow(m); } - i := _set_find_or_make(m, key); + _ = _set_find_or_make(m, key); if _set_full(m^) { _set_grow(m); } diff --git a/core/container/small_array.odin b/core/container/small_array.odin index 1f023ef36..62dab52e3 100644 --- a/core/container/small_array.odin +++ b/core/container/small_array.odin @@ -1,7 +1,5 @@ package container -import "core:mem" - Small_Array :: struct(N: int, T: typeid) where N >= 0 { data: [N]T, len: int,