Format code
This commit is contained in:
committed by
Mateusz Mikuła
parent
e4b954ea92
commit
3c6503eb4b
@@ -57,19 +57,19 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Arithmetic {
|
||||
match expr.node {
|
||||
hir::ExprBinary(ref op, ref l, ref r) => {
|
||||
match op.node {
|
||||
hir::BiAnd |
|
||||
hir::BiOr |
|
||||
hir::BiBitAnd |
|
||||
hir::BiBitOr |
|
||||
hir::BiBitXor |
|
||||
hir::BiShl |
|
||||
hir::BiShr |
|
||||
hir::BiEq |
|
||||
hir::BiLt |
|
||||
hir::BiLe |
|
||||
hir::BiNe |
|
||||
hir::BiGe |
|
||||
hir::BiGt => return,
|
||||
hir::BiAnd
|
||||
| hir::BiOr
|
||||
| hir::BiBitAnd
|
||||
| hir::BiBitOr
|
||||
| hir::BiBitXor
|
||||
| hir::BiShl
|
||||
| hir::BiShr
|
||||
| hir::BiEq
|
||||
| hir::BiLt
|
||||
| hir::BiLe
|
||||
| hir::BiNe
|
||||
| hir::BiGe
|
||||
| hir::BiGt => return,
|
||||
_ => (),
|
||||
}
|
||||
let (l_ty, r_ty) = (cx.tables.expr_ty(l), cx.tables.expr_ty(r));
|
||||
|
||||
Reference in New Issue
Block a user