Fix some rustfmt screwups

This commit is contained in:
David Tolnay 2017-04-19 15:56:22 -07:00
parent 4a9cb3395d
commit cf1cdadc77
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
2 changed files with 33 additions and 35 deletions

View File

@ -52,15 +52,14 @@ pub fn expand_derive_deserialize(input: &syn::DeriveInput) -> Result<Tokens, Str
}
};
Ok(
quote! {
let generated = quote! {
#[allow(non_upper_case_globals, unused_attributes, unused_qualifications)]
const #dummy_const: () = {
extern crate serde as _serde;
#impl_block
};
},
)
};
Ok(generated)
}
struct Parameters {

View File

@ -51,15 +51,14 @@ pub fn expand_derive_serialize(input: &syn::DeriveInput) -> Result<Tokens, Strin
}
};
Ok(
quote! {
let generated = quote! {
#[allow(non_upper_case_globals, unused_attributes, unused_qualifications)]
const #dummy_const: () = {
extern crate serde as _serde;
#impl_block
};
},
)
};
Ok(generated)
}
fn precondition(cx: &Ctxt, cont: &Container) {