Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
blyxyas committed Jun 2, 2024
1 parent f933187 commit e969126
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/methods/option_map_unwrap_or.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pub(super) fn check<'tcx>(

let map = cx.tcx.hir();
let body = map.body(map.body_owned_by(map.enclosing_body_owner(expr.hir_id)));

// Visit the body, and return if we've found a reference
if reference_visitor.visit_body(body).is_break() {
return;
Expand Down

0 comments on commit e969126

Please sign in to comment.