Resolve conflicts between transparent and proc-macro2 upgrade
This commit is contained in:
parent
b13875dd97
commit
6bbc415fdf
@ -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();
|
||||
}
|
||||
|
||||
|
@ -193,7 +193,7 @@ fn serialize_transparent(cont: &Container, params: &Parameters) -> Fragment {
|
||||
Data::Enum(_) => unreachable!(),
|
||||
};
|
||||
|
||||
let self_var = params.self_var;
|
||||
let self_var = ¶ms.self_var;
|
||||
let transparent_field = fields.iter().find(|f| f.attrs.transparent()).unwrap();
|
||||
let member = &transparent_field.member;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user