about summary refs log tree commit diff
path: root/clippy_lints/src/loops
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-05-09 11:33:53 -0400
committerMichael Goulet <michael@errs.io>2024-05-12 12:50:18 -0400
commite65cefcf6f22cb482bcd2ae40c99f6baab8d99bc (patch)
tree6393c2c34c6e2f6c8c1cdc03866221b2221c7952 /clippy_lints/src/loops
parentdb193c1c9da7aa97d25815c5d2020d2bf5bbc038 (diff)
downloadrust-e65cefcf6f22cb482bcd2ae40c99f6baab8d99bc.tar.gz
rust-e65cefcf6f22cb482bcd2ae40c99f6baab8d99bc.zip
Propagate errors rather than using return_if_err
Diffstat (limited to 'clippy_lints/src/loops')
-rw-r--r--clippy_lints/src/loops/mut_range_bound.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/loops/mut_range_bound.rs b/clippy_lints/src/loops/mut_range_bound.rs
index 082c5977cbd..6b9ecf5f141 100644
--- a/clippy_lints/src/loops/mut_range_bound.rs
+++ b/clippy_lints/src/loops/mut_range_bound.rs
@@ -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()
 }