Propagate errors rather than using return_if_err

This commit is contained in:
Michael Goulet 2024-05-09 11:33:53 -04:00
parent db193c1c9d
commit e65cefcf6f
11 changed files with 17 additions and 13 deletions

View file

@ -21,7 +21,8 @@ pub fn mutated_variables<'tcx>(expr: &'tcx Expr<'_>, cx: &LateContext<'tcx>) ->
expr.hir_id.owner.def_id,
&mut delegate,
)
.walk_expr(expr);
.walk_expr(expr)
.into_ok();
if delegate.skip {
return None;