Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Serde 0.9 #4508

Merged
merged 12 commits into from Feb 13, 2017
Merged

Serde 0.9 #4508

merged 12 commits into from Feb 13, 2017

Conversation

tomusdrw
Copy link
Collaborator

@tomusdrw tomusdrw commented Feb 10, 2017

  • Migrating to serde-0.9
  • Updating ethabi and jsonrpc-* to latest versions migrated to serde-0.9
  • Removed custom serialization for vault files, since it could be just derived.

No more weird errors in build/rpc/somefile.out:513515 :)

Closes #3832
Closes #2466

@tomusdrw tomusdrw added A0-pleasereview 🤓 Pull request needs code review. M4-core ⛓ Core client code / Rust. labels Feb 10, 2017
@@ -38,16 +38,19 @@ impl<T> MaybeEmptyVisitor<T> {
impl<T> Visitor for MaybeEmptyVisitor<T> where T: Deserialize {
type Value = MaybeEmpty<T>;

fn visit_str<E>(&mut self, value: &str) -> Result<Self::Value, E> where E: Error {
fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
write!(formatter, "an empty string or encoding of {}", stringify!(T))
Copy link
Contributor

Choose a reason for hiding this comment

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

this just prints "an empty string or encoding of T" regardless of T. You're looking for intrinsics::type_name but it's unstable. rust-lang/rfcs#1428

@rphmeier rphmeier added A5-grumble 🔥 Pull request has minor issues that must be addressed before merging. and removed A0-pleasereview 🤓 Pull request needs code review. labels Feb 10, 2017
@rphmeier rphmeier added A0-pleasereview 🤓 Pull request needs code review. and removed A5-grumble 🔥 Pull request has minor issues that must be addressed before merging. labels Feb 10, 2017
@gavofyork
Copy link
Contributor

+665 −2,463

:)

@rphmeier rphmeier added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Feb 13, 2017
@NikVolf NikVolf merged commit f1e99ea into master Feb 13, 2017
@NikVolf NikVolf deleted the serde-0.9 branch February 13, 2017 15:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants