Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves #74.
I've split the work here into three commits for easier reviewing/reasoning:
simplifies the code a bit, and makes the changes required in the next commit
a ton easier. Should also perform a tiny bit better.
work on.
EDIT: @breard-r I've only checked the contribution guide again after opening this PR, and noticed one thing I've not done "right": I've added a dependency, on
rand
. I'd assume that's okay though?If adding a dependency is not okay, it'd be possible to start gating some of the features behind cargo feature flags and disable them by default. Where this would also make sense is #81, which will definitely pull in a lot more dependencies.