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

Sort members of codex::ROOT #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

emilyyyylime
Copy link
Collaborator

This is a bit of a 'how did we not catch this earlier?' story, but in all fairness this repository is only 5 days old.
I was checking out the Rust API when I noticed ROOT.get("sym") returned None—after which I came to realise ROOT's members weren't sorted in key-order, meaning the binary_search_by_key call didn't uphold its preconditions :P

I simply swapped the order of SYM and EMOJI in ROOT's definition and added a test to ensure all modules remain sorted indefinitely.

@laurmaedje I do think this fix warrants a new release to crates.io, this was a slightly major bug.

@MDLC01
Copy link
Collaborator

MDLC01 commented Nov 19, 2024

I do think this fix warrants a new release to crates.io, this was a slightly major bug.

There is no release available on crates.io for now (0.0.1 is empty I believe).

@MDLC01 MDLC01 added the meta Discussion about the structure of this repo label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta Discussion about the structure of this repo
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants