Skip to content

Commit 4434bfa

Browse files
committed
Fix dogfood test failures.
1 parent 6ef8b57 commit 4434bfa

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

clippy_lints/src/identity_conversion.rs

-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for IdentityConversion {
5050
};
5151
if let ExprKind::Call(_, ref args) = e.node {
5252
self.try_desugar_arm.push(args[0].hir_id);
53-
} else {
54-
return;
5553
}
5654
},
5755

clippy_lints/src/utils/usage.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub fn is_potentially_mutated<'a, 'tcx>(variable: &'tcx Path, expr: &'tcx Expr,
3737
if let Res::Local(id) = variable.res {
3838
mutated_variables(expr, cx).map_or(true, |mutated| mutated.contains(&id))
3939
} else {
40-
return true;
40+
true
4141
}
4242
}
4343

0 commit comments

Comments
 (0)