Use absolute paths to Ok and Err

This commit is contained in:
David Tolnay
2017-02-01 09:42:12 -08:00
parent d960571439
commit b7ca574bb3
4 changed files with 27 additions and 23 deletions
+1 -1
View File
@@ -260,7 +260,7 @@ fn serialize_variant(
let skipped_msg = format!("the enum variant {}::{} cannot be serialized",
type_ident, variant_ident);
let skipped_err = quote! {
Err(_serde::ser::Error::custom(#skipped_msg))
_serde::export::Err(_serde::ser::Error::custom(#skipped_msg))
};
let fields_pat = match variant.style {
Style::Unit => quote!(),