Skip to content

Make remove_field a non-mutating operation #1490

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

Merged
merged 2 commits into from
Mar 24, 2021

Conversation

tobim
Copy link
Member

@tobim tobim commented Mar 24, 2021

📔 Description

The mutating implementation relied on a buggy overload of get_if that broke the type registry. This overload is now commented out with an explanatory comment so it won't accidentally get reintroduced.

📝 Checklist

  • All user-facing changes have changelog entries.
  • The PR description contains instructions for the reviewer, if necessary.

🎯 Review Instructions

By commit.

@tobim tobim added the bug Incorrect behavior label Mar 24, 2021
@tobim tobim requested a review from dominiklohmann March 24, 2021 08:58
The mutating implementation relied on a buggy overload of `get_if`
that broke the type registry. This overload is now commented out
with an explanatory comment so it won't accidentally get
reintroduced.
@tobim tobim force-pushed the story/ch24148/fix-record-field-removal branch from 5c22c23 to eb03b57 Compare March 24, 2021 08:58
@dominiklohmann dominiklohmann changed the title Make remove_filed a non-mutation operation Make remove_field a non-mutating operation Mar 24, 2021
Copy link
Member

@dominiklohmann dominiklohmann left a comment

Choose a reason for hiding this comment

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

👀

@tobim tobim enabled auto-merge March 24, 2021 09:18
@tobim tobim merged commit 843c17d into master Mar 24, 2021
@tobim tobim deleted the story/ch24148/fix-record-field-removal branch March 24, 2021 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants