use #[deriving_deserializable] everywhere

This commit is contained in:
Erick Tryzelaar
2014-08-02 15:42:49 -07:00
parent 9d43fe43a9
commit 62eda3e19f
2 changed files with 9 additions and 0 deletions
+3
View File
@@ -7,11 +7,13 @@ use de::{Deserializer, Deserializable, Token};
//////////////////////////////////////////////////////////////////////////////
#[deriving(Clone, PartialEq, Show, Decodable)]
#[deriving_deserializable]
enum Animal {
Dog,
Frog(String, int)
}
/*
impl Deserializable for Animal {
#[inline]
fn deserialize_token<
@@ -34,6 +36,7 @@ impl Deserializable for Animal {
}
}
}
*/
//////////////////////////////////////////////////////////////////////////////