From 3c4eddc7f845f9146f4db03bd7accfd0005f599f Mon Sep 17 00:00:00 2001 From: Hugo Duncan Date: Wed, 4 Mar 2015 17:40:45 -0500 Subject: [PATCH] Fix plugin use of de::SeqVisitor When compiling a module with a struct containing a derive_deserialize annotation, the compiler was complaining "Use of undeclared type or module `de`". --- serde2/serde2_macros/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serde2/serde2_macros/src/lib.rs b/serde2/serde2_macros/src/lib.rs index 9a242d6b..912034c8 100644 --- a/serde2/serde2_macros/src/lib.rs +++ b/serde2/serde2_macros/src/lib.rs @@ -832,7 +832,7 @@ fn deserialize_struct_empty_fields( #[inline] fn visit_seq(&mut self, mut visitor: V) -> Result<$type_ident, V::Error> - where V: de::SeqVisitor, + where V: ::serde2::de::SeqVisitor, { try!(visitor.end()); self.visit_unit()