Skip to content

Add support for deserialization of owned values#16

Closed
nklhtv wants to merge 6 commits into
fspmarshall:masterfrom
Stremio:master
Closed

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

Conversation

@nklhtv

@nklhtv nklhtv commented Sep 13, 2022

Copy link
Copy Markdown

Based on PR #8 but includes:

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

@thomaseizinger thomaseizinger left a comment

Copy link
Copy Markdown

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

Comment thread src/lib.rs
use std::{error, io, fmt};
use serde::de::{Visitor};
use serde::export::{PhantomData};
use serde::__private::{PhantomData};

Copy link
Copy Markdown

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.

Comment thread src/lib.rs Outdated
pub use config::*;
pub use types::{Error, ParseHexError};

use serde::__private::PhantomData;

Copy link
Copy Markdown

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

nklhtv commented Sep 14, 2022

Copy link
Copy Markdown
Author

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