Skip to content

Add support for deserialization of owned values#16

Closed
nklhtv wants to merge 6 commits intofspmarshall:masterfrom
Stremio:master
Closed

Add support for deserialization of owned values#16
nklhtv wants to merge 6 commits intofspmarshall:masterfrom
Stremio:master

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

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
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