Skip to content

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
@mkorje mkorje requested a review from laurmaedje November 20, 2024 02:25
@laurmaedje laurmaedje merged commit 7106152 into typst:main Nov 26, 2024
1 check passed
@laurmaedje
Copy link
Member

Definitely a major oversight on my part! Thanks.

@emilyyyylime emilyyyylime deleted the linear-search branch November 27, 2024 11:28
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.

3 participants