1
Fork 0

syntax: Clean up the indentation for #[derive(Eq)]

This commit is contained in:
Erick Tryzelaar 2015-04-01 10:51:24 -07:00
parent 01e56942a0
commit ed437cd8fc

View file

@ -24,7 +24,8 @@ pub fn expand_deriving_eq(cx: &mut ExtCtxt,
push: &mut FnMut(P<Item>))
{
fn cs_total_eq_assert(cx: &mut ExtCtxt, span: Span, substr: &Substructure) -> P<Expr> {
cs_same_method(|cx, span, exprs| {
cs_same_method(
|cx, span, exprs| {
// create `a.<method>(); b.<method>(); c.<method>(); ...`
// (where method is `assert_receiver_is_total_eq`)
let stmts = exprs.into_iter().map(|e| cx.stmt_expr(e)).collect();
@ -35,7 +36,8 @@ pub fn expand_deriving_eq(cx: &mut ExtCtxt,
cx.span_bug(sp, "non matching enums in derive(Eq)?") }),
cx,
span,
substr)
substr
)
}
let inline = cx.meta_word(span, InternedString::new("inline"));