diff options
| author | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2020-06-25 23:41:36 +0300 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2020-07-03 00:04:48 +0300 |
| commit | 30c046ede47ea45a772d2656b0365a4807263bca (patch) | |
| tree | c1b13657170546b91e8845a957ef9e80b6a5de71 /clippy_lints/src/integer_division.rs | |
| parent | 590e07bbc2d2cba6377476c6b8442400327ff579 (diff) | |
Use 'tcx for references to AccessLevels wherever possible.
Diffstat (limited to 'clippy_lints/src/integer_division.rs')
| -rw-r--r-- | clippy_lints/src/integer_division.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clippy_lints/src/integer_division.rs b/clippy_lints/src/integer_division.rs index 83ae1c1a971..e754c7b482a 100644 --- a/clippy_lints/src/integer_division.rs +++ b/clippy_lints/src/integer_division.rs @@ -30,8 +30,8 @@ declare_clippy_lint! { declare_lint_pass!(IntegerDivision => [INTEGER_DIVISION]); -impl<'a, 'tcx> LateLintPass<'a, 'tcx> for IntegerDivision { - fn check_expr(&mut self, cx: &LateContext<'a, 'tcx>, expr: &'tcx hir::Expr<'_>) { +impl<'tcx> LateLintPass<'tcx> for IntegerDivision { + fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx hir::Expr<'_>) { if is_integer_division(cx, expr) { span_lint_and_help( cx, @@ -45,7 +45,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for IntegerDivision { } } -fn is_integer_division<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, expr: &'tcx hir::Expr<'_>) -> bool { +fn is_integer_division<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx hir::Expr<'_>) -> bool { if_chain! { if let hir::ExprKind::Binary(binop, left, right) = &expr.kind; if let hir::BinOpKind::Div = &binop.node; |
