Skip to content

Comments

Properly support decoding profiles with/without Result#102

Merged
elliottslaughter merged 1 commit intomasterfrom
fix-result-decode
May 22, 2025
Merged

Properly support decoding profiles with/without Result#102
elliottslaughter merged 1 commit intomasterfrom
fix-result-decode

Conversation

@elliottslaughter
Copy link
Contributor

In order to correctly parse new and old profiles, we have to first attempt to decode the result as data::Result<T>, and then a second time as plain T.

Previously we were missing the first, and newer profiles did not decode at all. I missed the error before because the Result type generated by the nice error message was fully pluggable with the rest of the system. The new code is much more explicit about what type we're decoding.

@elliottslaughter elliottslaughter changed the title Properly support decoding both new and old profiles Properly support decoding profiles with/without Result May 22, 2025
@elliottslaughter elliottslaughter merged commit c481d15 into master May 22, 2025
14 checks passed
@elliottslaughter elliottslaughter deleted the fix-result-decode branch May 22, 2025 03:20
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.

1 participant