mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-11 17:21:03 +00:00
Format with rustfmt 2021-09-29
This commit is contained in:
@@ -65,11 +65,13 @@ pub fn pretend_used(cont: &Container, is_packed: bool) -> TokenStream {
|
|||||||
fn pretend_fields_used(cont: &Container, is_packed: bool) -> TokenStream {
|
fn pretend_fields_used(cont: &Container, is_packed: bool) -> TokenStream {
|
||||||
match &cont.data {
|
match &cont.data {
|
||||||
Data::Enum(variants) => pretend_fields_used_enum(cont, variants),
|
Data::Enum(variants) => pretend_fields_used_enum(cont, variants),
|
||||||
Data::Struct(Style::Struct, fields) => if is_packed {
|
Data::Struct(Style::Struct, fields) => {
|
||||||
pretend_fields_used_struct_packed(cont, fields)
|
if is_packed {
|
||||||
} else {
|
pretend_fields_used_struct_packed(cont, fields)
|
||||||
pretend_fields_used_struct(cont, fields)
|
} else {
|
||||||
},
|
pretend_fields_used_struct(cont, fields)
|
||||||
|
}
|
||||||
|
}
|
||||||
Data::Struct(_, _) => quote!(),
|
Data::Struct(_, _) => quote!(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user