Resolve conflicts between transparent and proc-macro2 upgrade

This commit is contained in:
David Tolnay 2018-05-20 21:57:23 -07:00
parent b13875dd97
commit 6bbc415fdf
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
2 changed files with 2 additions and 2 deletions

View File

@ -231,7 +231,7 @@ impl Container {
}
// Parse `#[serde(transparent)]`
Meta(Word(word)) if word == "transparent" => {
Meta(Word(ref word)) if word == "transparent" => {
transparent.set_true();
}

View File

@ -193,7 +193,7 @@ fn serialize_transparent(cont: &Container, params: &Parameters) -> Fragment {
Data::Enum(_) => unreachable!(),
};
let self_var = params.self_var;
let self_var = &params.self_var;
let transparent_field = fields.iter().find(|f| f.attrs.transparent()).unwrap();
let member = &transparent_field.member;