Cargo fmt
This commit is contained in:
@@ -123,8 +123,8 @@ fn is_add(cx: &LateContext, src: &Expr, target: &Expr) -> bool {
|
||||
match src.node {
|
||||
ExprBinary(Spanned { node: BiAdd, .. }, ref left, _) => SpanlessEq::new(cx).eq_expr(target, left),
|
||||
ExprBlock(ref block) => {
|
||||
block.stmts.is_empty() &&
|
||||
block
|
||||
block.stmts.is_empty()
|
||||
&& block
|
||||
.expr
|
||||
.as_ref()
|
||||
.map_or(false, |expr| is_add(cx, expr, target))
|
||||
|
||||
Reference in New Issue
Block a user