peepmatic: rustfmt

This commit is contained in:
Nick Fitzgerald
2020-05-08 12:24:53 -07:00
parent 52c6ece5f3
commit fd4f08e75f
2 changed files with 33 additions and 6 deletions

View File

@@ -23,7 +23,9 @@ pub fn derive_span(input: &DeriveInput) -> Result<impl quote::ToTokens> {
}
}
}
syn::Data::Union(_) => panic!("derive(Ast) can only be used with structs and enums, not unions"),
syn::Data::Union(_) => {
panic!("derive(Ast) can only be used with structs and enums, not unions")
}
};
let generics = add_span_trait_bounds(input.generics.clone());