Format with rustfmt 1.0.0-nightly

This commit is contained in:
David Tolnay
2018-11-21 01:13:17 -08:00
parent a8a54c0568
commit 9afc5fef11
12 changed files with 107 additions and 99 deletions
+2 -1
View File
@@ -62,7 +62,8 @@ fn pretend_fields_used(cont: &Container) -> TokenStream {
Some(quote!(#type_ident::#variant_ident #pat))
}
_ => None,
}).collect::<Vec<_>>(),
})
.collect::<Vec<_>>(),
Data::Struct(Style::Struct, ref fields) => {
let pat = struct_pattern(fields);
vec![quote!(#type_ident #pat)]