diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-06-24 04:00:05 +0200 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-06-24 04:00:05 +0200 |
| commit | 4434bfac017b4005857731808d39600cd7e02cb8 (patch) | |
| tree | dda6ceb8c94e9da27c4a23556c61fa3717b01eea | |
| parent | 6ef8b57e341f40435425b71ea73436577f2b0347 (diff) | |
| download | rust-4434bfac017b4005857731808d39600cd7e02cb8.tar.gz rust-4434bfac017b4005857731808d39600cd7e02cb8.zip | |
Fix dogfood test failures.
| -rw-r--r-- | clippy_lints/src/identity_conversion.rs | 2 | ||||
| -rw-r--r-- | clippy_lints/src/utils/usage.rs | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/clippy_lints/src/identity_conversion.rs b/clippy_lints/src/identity_conversion.rs index 50ba2b90ee5..baf7791b792 100644 --- a/clippy_lints/src/identity_conversion.rs +++ b/clippy_lints/src/identity_conversion.rs @@ -50,8 +50,6 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for IdentityConversion { }; if let ExprKind::Call(_, ref args) = e.node { self.try_desugar_arm.push(args[0].hir_id); - } else { - return; } }, diff --git a/clippy_lints/src/utils/usage.rs b/clippy_lints/src/utils/usage.rs index 5474837d8a7..3427d88ff03 100644 --- a/clippy_lints/src/utils/usage.rs +++ b/clippy_lints/src/utils/usage.rs @@ -37,7 +37,7 @@ pub fn is_potentially_mutated<'a, 'tcx>(variable: &'tcx Path, expr: &'tcx Expr, if let Res::Local(id) = variable.res { mutated_variables(expr, cx).map_or(true, |mutated| mutated.contains(&id)) } else { - return true; + true } } |
