Rustfmt has changed its default style :/

This commit is contained in:
Simon Sapin 2018-12-14 08:31:30 +01:00
parent 82fc6d9f49
commit be69f9c3e6
207 changed files with 1200 additions and 1339 deletions

View file

@ -172,9 +172,7 @@ fn path_to_ident(path: &Path) -> Option<&Ident> {
Path {
leading_colon: None,
ref segments,
}
if segments.len() == 1 =>
{
} if segments.len() == 1 => {
if segments[0].arguments.is_empty() {
Some(&segments[0].ident)
} else {

View file

@ -43,7 +43,7 @@ pub fn derive(input: DeriveInput) -> TokenStream {
saw_condition |= parse_attrs.condition.is_some();
let condition = match parse_attrs.condition {
Some(ref p) => quote! { if #p(context) },
None => quote!{},
None => quote! {},
};
let mut body = quote! {