Rustup to *rustc 1.20.0-nightly (d84693b93
2017-07-09)*
This commit is contained in:
parent
fd7dda097b
commit
a82cd77b2b
16 changed files with 57 additions and 59 deletions
|
@ -158,9 +158,9 @@ fn check_cmp(cx: &LateContext, span: Span, left: &Expr, right: &Expr, op: &str)
|
|||
}
|
||||
}
|
||||
match (&left.node, &right.node) {
|
||||
(&ExprLit(ref lit), &ExprMethodCall(ref method, _, ref args)) |
|
||||
(&ExprMethodCall(ref method, _, ref args), &ExprLit(ref lit)) => {
|
||||
check_len_zero(cx, span, method.node, args, lit, op)
|
||||
(&ExprLit(ref lit), &ExprMethodCall(ref method_path, _, ref args)) |
|
||||
(&ExprMethodCall(ref method_path, _, ref args), &ExprLit(ref lit)) => {
|
||||
check_len_zero(cx, span, method_path.name, args, lit, op)
|
||||
},
|
||||
_ => (),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue