Reformat using the new identifier sorting from rustfmt
This commit is contained in:
parent
1173204b36
commit
c682aa162b
1455 changed files with 7152 additions and 8384 deletions
|
@ -105,14 +105,11 @@ fn decodable_body(
|
|||
};
|
||||
s.underscore_const(true);
|
||||
|
||||
s.bound_impl(
|
||||
quote!(::rustc_serialize::Decodable<#decoder_ty>),
|
||||
quote! {
|
||||
fn decode(__decoder: &mut #decoder_ty) -> Self {
|
||||
#decode_body
|
||||
}
|
||||
},
|
||||
)
|
||||
s.bound_impl(quote!(::rustc_serialize::Decodable<#decoder_ty>), quote! {
|
||||
fn decode(__decoder: &mut #decoder_ty) -> Self {
|
||||
#decode_body
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
fn decode_field(field: &syn::Field) -> proc_macro2::TokenStream {
|
||||
|
@ -288,16 +285,13 @@ fn encodable_body(
|
|||
quote! {}
|
||||
};
|
||||
|
||||
s.bound_impl(
|
||||
quote!(::rustc_serialize::Encodable<#encoder_ty>),
|
||||
quote! {
|
||||
fn encode(
|
||||
&self,
|
||||
__encoder: &mut #encoder_ty,
|
||||
) {
|
||||
#lints
|
||||
#encode_body
|
||||
}
|
||||
},
|
||||
)
|
||||
s.bound_impl(quote!(::rustc_serialize::Encodable<#encoder_ty>), quote! {
|
||||
fn encode(
|
||||
&self,
|
||||
__encoder: &mut #encoder_ty,
|
||||
) {
|
||||
#lints
|
||||
#encode_body
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue