Switch to the new custom_deserialize syntax

This commit is contained in:
Erick Tryzelaar
2015-03-19 07:49:42 -07:00
parent c8b2ad01b5
commit 5378d22708
11 changed files with 34 additions and 65 deletions
+1 -2
View File
@@ -15,8 +15,7 @@ use Animal::{Dog, Frog};
//////////////////////////////////////////////////////////////////////////////
#[derive(Clone, PartialEq, Debug, RustcDecodable)]
#[derive_deserialize]
#[derive(Clone, PartialEq, Debug, RustcDecodable, Deserialize)]
pub enum Animal {
Dog,
Frog(String, isize)