-
Notifications
You must be signed in to change notification settings - Fork 11
Refactor: Use serde instead of TryFrom<Vec<u8>> traits in IPC #316
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
Refactor: Use serde instead of TryFrom<Vec<u8>> traits in IPC #316
Conversation
Great job, no security vulnerabilities found in this Pull Request |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## PM-18042-build-request-response-structure #316 +/- ##
=============================================================================
- Coverage 72.01% 70.61% -1.40%
=============================================================================
Files 231 222 -9
Lines 18796 17356 -1440
=============================================================================
- Hits 13536 12256 -1280
+ Misses 5260 5100 -160 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Looks pretty good to me, erased serde seems to have improved the generic bounds of this a lot. I only have some small nits here and there.
I wonder why rust doesn't seem able to correctly guess the error types in all the .try_into().map_err() functions, that's annoying.
@@ -389,7 +375,7 @@ where | |||
} | |||
.try_into() | |||
.map_err( |
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.
Same for this error:
.map_err(|e: serde_utils::SerializeError| HandleError::Serialize(e.to_string()))?;
|
64a8bd2
into
PM-18042-build-request-response-structure
🎟️ Tracking
📔 Objective
Refactoring the IPC to use serde instead. Putting this in a separate PR to make reviewing easier
⏰ Reminders before review
team
🦮 Reviewer guidelines
:+1:
) or similar for great changes:memo:
) or ℹ️ (:information_source:
) for notes or general info:question:
) for questions:thinking:
) or 💭 (:thought_balloon:
) for more open inquiry that's not quite a confirmedissue and could potentially benefit from discussion
:art:
) for suggestions / improvements:x:
) or:warning:
) for more significant problems or concerns needing attention:seedling:
) or ♻️ (:recycle:
) for future improvements or indications of technical debt:pick:
) for minor or nitpick changes