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 a8797c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion clippy_lints/src/unconditional_recursion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ where
}

fn visit_expr(&mut self, expr: &'tcx Expr<'tcx>) -> ControlFlow<()> {
walk_expr(self, expr);
walk_expr(self, expr)?;

if let ExprKind::Call(f, _) = expr.kind
&& let ExprKind::Path(qpath) = f.kind
Expand Down

0 comments on commit a8797c9

Please sign in to comment.