Fix #35 by not relying on the crate being import in the current module

This commit is contained in:
Erick Tryzelaar 2015-03-15 13:02:34 -07:00
parent 00287bd055
commit 9972478066

View File

@ -54,7 +54,7 @@ pub fn expand_derive_serialize(
#[automatically_derived] #[automatically_derived]
impl $impl_generics ::serde::ser::Serialize for $serialize_ty $where_clause { impl $impl_generics ::serde::ser::Serialize for $serialize_ty $where_clause {
fn serialize<__S>(&self, serializer: &mut __S) -> Result<(), __S::Error> fn serialize<__S>(&self, serializer: &mut __S) -> Result<(), __S::Error>
where __S: serde::ser::Serializer, where __S: ::serde::ser::Serializer,
{ {
$body $body
} }