Propagate errors rather than using return_if_err
This commit is contained in:
parent
db193c1c9d
commit
e65cefcf6f
11 changed files with 17 additions and 13 deletions
|
|
@ -65,7 +65,7 @@ fn check_for_mutation(
|
|||
body.hir_id.owner.def_id,
|
||||
&mut delegate,
|
||||
)
|
||||
.walk_expr(body);
|
||||
.walk_expr(body).into_ok();
|
||||
|
||||
delegate.mutation_span()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue