]> git.lizzy.rs Git - rust.git/commitdiff
Run rustfmt
authorOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>
Mon, 27 Feb 2017 08:49:02 +0000 (09:49 +0100)
committerOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>
Mon, 27 Feb 2017 08:49:02 +0000 (09:49 +0100)
clippy_lints/src/utils/hir.rs

index 8421e8efd5e8e2bd8d6763095d0c787de2f54350..00890c37a0af682aa9366fadc8ce3d1847c9f176 100644 (file)
@@ -68,7 +68,9 @@ pub fn eq_expr(&self, left: &Expr, right: &Expr) -> bool {
 
         match (&left.node, &right.node) {
             (&ExprAddrOf(l_mut, ref le), &ExprAddrOf(r_mut, ref re)) => l_mut == r_mut && self.eq_expr(le, re),
-            (&ExprAgain(li), &ExprAgain(ri)) => both(&li.ident, &ri.ident, |l, r| l.node.name.as_str() == r.node.name.as_str()),
+            (&ExprAgain(li), &ExprAgain(ri)) => {
+                both(&li.ident, &ri.ident, |l, r| l.node.name.as_str() == r.node.name.as_str())
+            },
             (&ExprAssign(ref ll, ref lr), &ExprAssign(ref rl, ref rr)) => self.eq_expr(ll, rl) && self.eq_expr(lr, rr),
             (&ExprAssignOp(ref lo, ref ll, ref lr), &ExprAssignOp(ref ro, ref rl, ref rr)) => {
                 lo.node == ro.node && self.eq_expr(ll, rl) && self.eq_expr(lr, rr)
@@ -81,7 +83,8 @@ pub fn eq_expr(&self, left: &Expr, right: &Expr) -> bool {
                 })
             },
             (&ExprBreak(li, ref le), &ExprBreak(ri, ref re)) => {
-                both(&li.ident, &ri.ident, |l, r| l.node.name.as_str() == r.node.name.as_str()) && both(le, re, |l, r| self.eq_expr(l, r))
+                both(&li.ident, &ri.ident, |l, r| l.node.name.as_str() == r.node.name.as_str()) &&
+                both(le, re, |l, r| self.eq_expr(l, r))
             },
             (&ExprBox(ref l), &ExprBox(ref r)) => self.eq_expr(l, r),
             (&ExprCall(ref l_fun, ref l_args), &ExprCall(ref r_fun, ref r_args)) => {