We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c2a6f8 commit d241556Copy full SHA for d241556
clippy_lints/src/methods/option_map_unwrap_or.rs
@@ -59,7 +59,7 @@ pub(super) fn check<'tcx>(
59
};
60
61
let map = cx.tcx.hir();
62
- let body = map.body(map.body_owned_by(map.enclosing_body_owner(expr.hir_id)));
+ let body = map.body_owned_by(map.enclosing_body_owner(expr.hir_id));
63
64
// Visit the body, and return if we've found a reference
65
if reference_visitor.visit_body(body).is_break() {
0 commit comments