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

Fix support for Algorithm none #624

Merged
merged 3 commits into from
Oct 30, 2024
Merged

Fix support for Algorithm none #624

merged 3 commits into from
Oct 30, 2024

Conversation

cobward
Copy link
Contributor

@cobward cobward commented Oct 30, 2024

Description

Fix Algorithm::None deserialization. Currently "none" is rejected.

Other changes

N/A

Tested

N/A

Copy link

@lucab lucab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with a minor testing suggestion.

@@ -26,7 +26,7 @@ macro_rules! algorithms {
///
/// Per the specs it should only be `none` but `None` is kept for backwards
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to have a test to check that it serializes as none and that it is able to deserialize both.

Copy link
Contributor Author

@cobward cobward Oct 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call, it was serializing to None.

@cobward cobward merged commit 164ac45 into main Oct 30, 2024
3 checks passed
@cobward cobward deleted the fix/algorithm-none branch October 30, 2024 12:13
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.

3 participants