estokes / immutable-chunkmap

Fast cache efficient immutable map for rust
Apache License 2.0
25 stars 8 forks source link

Implement `get_or_default_cow` using `get_or_insert_cow` #7

Closed mwcampbell closed 7 months ago

mwcampbell commented 8 months ago

Since get_or_default_cow is really just a convenient special case of get_or_insert_cow, we shouldn't duplicate the logic between these two functions. This also eliminates one occurrence of unsafe.