+
Skip to content

Conversation

Conaclos
Copy link
Member

Summary

A few days ago, while working on #1859, I found some possible simplification.
Because, I am no longer sure that #1859 is a good idea, I decided to extract the main simplifications in this PR.

The idea is to implement Deserializable for Option.
This allows to remove specific handling of Option in the Deserializable derive macro.

I also simplified the Merge derive macro, which was more complex than it needed to be.

I also removed the implementations that allow an instance to be converted to a partial instance.
It is never used and has a conceptual flaw: it assumes that a field is unset with its default value.

Test Plan

CI should pass.

@Conaclos Conaclos merged commit cf48a89 into main Apr 28, 2024
@Conaclos Conaclos deleted the conaclos/biome_deserialize/minor-improvements branch April 28, 2024 12:31
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

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载