Skip to content

[pull] master from ron-rs:master - #39

Merged
pull[bot] merged 1 commit into
transparencies:masterfrom
ron-rs:master
Sep 6, 2026
Merged

pull[bot] merged 1 commit into
transparencies:masterfrom
ron-rs:master

Conversation

@pull

@pull pull Bot commented Sep 6, 2026 •

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

* fix(de): accept inf/NaN start bound in compact Range/RangeInclusive

The compact-range serializer emits non-finite start bounds such as
`inf..2.0` and `NaN..=2.0`, but the `Range`/`RangeInclusive`
deserializers only took the compact-range path when the first byte was
recognised by `is_number_start` (digit / + / - / . / b). Because `inf`
and `NaN` start with a letter, those inputs failed to deserialize with
`ExpectedNamedStructLike`, breaking serialize -> deserialize round-trips.
The sibling `RangeFrom` branch already had the inf/NaN ident checks; this
applies the same checks to `Range`/`RangeInclusive`.

* refactor(de): move the compact-range number-start check into the parser

The inf/NaN literal check now sits next to any_number as
check_any_number_start, so the Range/RangeInclusive and RangeFrom call
sites share one definition instead of repeating the same seven-way
condition.

* docs(changelog): add an Unreleased bug-fix entry for #605

* docs(changelog): say start bound, which is what the fix covers

The entry claimed both bounds. Only the start was broken: the guard was
is_number_start, which does not recognise inf or NaN, while the end bound
already went through any_number.
@pull pull Bot locked and limited conversation to collaborators Sep 6, 2026
@pull pull Bot added the ⤵️ pull label Sep 6, 2026
@pull
pull Bot merged commit 7f765e9 into transparencies:master Sep 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant