Format with rustfmt 2018-11-30

This commit is contained in:
David Tolnay
2018-12-10 22:09:02 -08:00
parent 8b4074ee77
commit 16daba8ea9
6 changed files with 230 additions and 154 deletions
+5 -1
View File
@@ -60,7 +60,11 @@ pub enum Style {
impl<'a> Container<'a> {
/// Convert the raw Syn ast into a parsed container object, collecting errors in `cx`.
pub fn from_ast(cx: &Ctxt, item: &'a syn::DeriveInput, derive: Derive) -> Option<Container<'a>> {
pub fn from_ast(
cx: &Ctxt,
item: &'a syn::DeriveInput,
derive: Derive,
) -> Option<Container<'a>> {
let mut attrs = attr::Container::from_ast(cx, item);
let mut data = match item.data {