Skip to content

Commit

Permalink
Fix for the macro testing
Browse files Browse the repository at this point in the history
  • Loading branch information
danielyule committed Mar 28, 2016
1 parent 1f00d34 commit e0e1db2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rmp-serde/tests/de_macro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,13 +237,13 @@ fn pass_enum_custom_policy() {
impl<R: Read> serde::Deserializer for CustomDeserializer<R> {
type Error = Error;

fn visit<V>(&mut self, visitor: V) -> Result<V::Value>
fn deserialize<V>(&mut self, visitor: V) -> Result<V::Value>
where V: serde::de::Visitor
{
self.inner.visit(visitor)
self.inner.deserialize(visitor)
}

fn visit_enum<V>(&mut self, _enum: &str, _variants: &'static [&'static str], mut visitor: V)
fn deserialize_enum<V>(&mut self, _enum: &str, _variants: &'static [&'static str], mut visitor: V)
-> Result<V::Value>
where V: serde::de::EnumVisitor
{
Expand Down

0 comments on commit e0e1db2

Please sign in to comment.