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

Deduplicate serde impls for integers #2258

Merged
merged 1 commit into from
Sep 18, 2024
Merged

Conversation

aumetra
Copy link
Member

@aumetra aumetra commented Sep 18, 2024

No description provided.

Copy link
Member

@webmaster128 webmaster128 left a comment

Choose a reason for hiding this comment

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

Nice

{
struct IntVisitor;

impl<'de> ::serde::de::Visitor<'de> for IntVisitor {
Copy link
Member

Choose a reason for hiding this comment

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

Nice! Was already wondering if we can make this even more private. Great stuff

where
E: ::serde::de::Error,
{
<_>::try_from(v).map_err(|e| {
Copy link
Member

Choose a reason for hiding this comment

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

🧙

packages/std/src/math/mod.rs Show resolved Hide resolved
@webmaster128 webmaster128 merged commit 0580b99 into main Sep 18, 2024
33 of 34 checks passed
@webmaster128 webmaster128 deleted the aw/deduplicate-serde-impl branch September 18, 2024 10:11
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.

2 participants