]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/duration_subsec.rs
Remove a span from hir::ExprKind::MethodCall
[rust.git] / clippy_lints / src / duration_subsec.rs
index 50dd0d84fda518f0d3d4663c694187f8e0d55128..24e32c09f44b3252d158653ef366eb8bb66a8e28 100644 (file)
@@ -45,7 +45,7 @@ impl<'tcx> LateLintPass<'tcx> for DurationSubsec {
     fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) {
         if_chain! {
             if let ExprKind::Binary(Spanned { node: BinOpKind::Div, .. }, left, right) = expr.kind;
-            if let ExprKind::MethodCall(method_path, _ , args, _) = left.kind;
+            if let ExprKind::MethodCall(method_path, args, _) = left.kind;
             if match_type(cx, cx.typeck_results().expr_ty(&args[0]).peel_refs(), &paths::DURATION);
             if let Some((Constant::Int(divisor), _)) = constant(cx, cx.typeck_results(), right);
             then {