fix!: removed all 'mixed pointer'-edness
All checks were successful
CI / Check PR Title (pull_request) Successful in 31s
CI / Makefile Lint (pull_request) Successful in 45s
CI / Markdown Lint (pull_request) Successful in 34s
CI / Unit Tests (pull_request) Successful in 41s
CI / Go Lint (pull_request) Successful in 56s
CI / Fuzz Tests (pull_request) Successful in 1m39s
CI / Mutation Tests (pull_request) Successful in 1m5s

This commit is contained in:
2026-04-15 22:59:31 -04:00
parent ce41d4fba2
commit f35583e079
2 changed files with 12 additions and 12 deletions

View File

@@ -19,11 +19,11 @@ type bucket[K, V any] struct {
// location determines where in the bucket a certain key would be placed. If the
// capacity is 0, this will panic.
func (b bucket[K, V]) location(key K) uint64 {
func (b *bucket[K, V]) location(key K) uint64 {
return b.hash(key) % b.capacity
}
func (b bucket[K, V]) get(key K) (value V, found bool) {
func (b *bucket[K, V]) get(key K) (value V, found bool) {
if b.capacity == 0 {
return
}
@@ -54,7 +54,7 @@ func (b *bucket[K, V]) resize(capacity uint64) {
b.size = 0
}
func (b bucket[K, V]) update(key K, value V) (updated bool) {
func (b *bucket[K, V]) update(key K, value V) (updated bool) {
if b.capacity == 0 {
return
}