Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add try_get_or_insert_mut #178

Merged
merged 1 commit into from
Sep 6, 2023

Conversation

Earthcomputer
Copy link
Contributor

Also fix issues with try_get_or_insert documentation and simplify its implementation.

rj00a pushed a commit to valence-rs/valence that referenced this pull request Sep 3, 2023
# Objective

- Follow on from #510 by adding the ability to write and delete chunks
in anvil files.

# Solution

- Users can change the compression method and whether to write oversized
chunks, in case they want to write anvil files compatible with older
versions of Minecraft.
- `LruCache::try_get_or_insert_mut` is something I have [pull
requested](jeromefroe/lru-rs#178) to `lru`, we
can switch to that once it's merged.
@jeromefroe jeromefroe merged commit b24f53f into jeromefroe:master Sep 6, 2023
4 checks passed
@jeromefroe
Copy link
Owner

Thanks for the contribution @Earthcomputer!

@Earthcomputer Earthcomputer deleted the try_get_or_insert_mut branch September 6, 2023 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants