-
Notifications
You must be signed in to change notification settings - Fork 91
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
feat: add handwritten serialize #185
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
TableMetadataV1 { | ||
impl TryFrom<TableMetadata> for TableMetadataV1 { | ||
type Error = Error; | ||
fn try_from(v: TableMetadata) -> Result<Self, Error> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we still use expect
at following, why we need to convert it to try_from
🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, cuz I want make 2 separate PRs -- 1 for serialize
and 1 for removing expect
. I should really mention it before.
Replaced |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @odysa for raising this PR, and thanks @liurenjie1024 for the prompt review 🙌
Add serialize for
TableMetadata
and useTryFrom
as discussed in #177