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

Add support for deserialization of owned values #16

Closed
wants to merge 6 commits into from

Conversation

nklhtv
Copy link

@nklhtv nklhtv commented Sep 13, 2022

Based on PR #8 but includes:

  • adapt to the new serde api
  • fixes for SerHexOpt
  • additional test
  • cargo fmt

Copy link

@thomaseizinger thomaseizinger left a comment

Choose a reason for hiding this comment

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

I've integrated the additional fixes into my PR by cherry-picking your commits!

#8

@@ -54,7 +54,7 @@ use smallvec::SmallVec;
use std::iter::FromIterator;
use std::{error, io, fmt};
use serde::de::{Visitor};
use serde::export::{PhantomData};
use serde::__private::{PhantomData};

Choose a reason for hiding this comment

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

Well, we should really be importing this from std, haha.

src/lib.rs Outdated
@@ -49,12 +49,12 @@ pub mod utils;
pub use config::*;
pub use types::{Error, ParseHexError};

use serde::__private::PhantomData;

Choose a reason for hiding this comment

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

Invasive things like cargo fmt are likely better left to individual PRs, just adds unnecessary noise to the diff and thus work to the reviewers.

Copy link
Author

Choose a reason for hiding this comment

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

@thomaseizinger I agree with you, and i reverted the code reformat commit

This reverts commit fb02c8f.
@nklhtv
Copy link
Author

nklhtv commented Sep 14, 2022

Closed in favor of #8
essential commits ware cherry-picked

@nklhtv nklhtv closed this Sep 14, 2022
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